mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Move libraries import
This commit is contained in:
parent
3ea6890c34
commit
b2bc90cb06
209 changed files with 36 additions and 14941 deletions
|
@ -13,11 +13,13 @@ import xbmcaddon
|
||||||
|
|
||||||
__addon__ = xbmcaddon.Addon(id='plugin.video.emby')
|
__addon__ = xbmcaddon.Addon(id='plugin.video.emby')
|
||||||
__base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'resources', 'lib')).decode('utf-8')
|
__base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'resources', 'lib')).decode('utf-8')
|
||||||
|
__libraries__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'librarie')).decode('utf-8')
|
||||||
__pcache__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('profile'), 'emby')).decode('utf-8')
|
__pcache__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('profile'), 'emby')).decode('utf-8')
|
||||||
__cache__ = xbmc.translatePath('special://temp/emby').decode('utf-8')
|
__cache__ = xbmc.translatePath('special://temp/emby').decode('utf-8')
|
||||||
|
|
||||||
sys.path.insert(0, __cache__)
|
sys.path.insert(0, __cache__)
|
||||||
sys.path.insert(0, __pcache__)
|
sys.path.insert(0, __pcache__)
|
||||||
|
sys.path.insert(0, __libraries__)
|
||||||
sys.path.append(__base__)
|
sys.path.append(__base__)
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
|
@ -13,11 +13,13 @@ import xbmcaddon
|
||||||
|
|
||||||
__addon__ = xbmcaddon.Addon(id='plugin.video.emby')
|
__addon__ = xbmcaddon.Addon(id='plugin.video.emby')
|
||||||
__base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'resources', 'lib')).decode('utf-8')
|
__base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'resources', 'lib')).decode('utf-8')
|
||||||
|
__libraries__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'libraries')).decode('utf-8')
|
||||||
__pcache__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('profile'), 'emby')).decode('utf-8')
|
__pcache__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('profile'), 'emby')).decode('utf-8')
|
||||||
__cache__ = xbmc.translatePath('special://temp/emby').decode('utf-8')
|
__cache__ = xbmc.translatePath('special://temp/emby').decode('utf-8')
|
||||||
|
|
||||||
sys.path.insert(0, __cache__)
|
sys.path.insert(0, __cache__)
|
||||||
sys.path.insert(0, __pcache__)
|
sys.path.insert(0, __pcache__)
|
||||||
|
sys.path.insert(0, __libraries__)
|
||||||
sys.path.append(__base__)
|
sys.path.append(__base__)
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
|
@ -13,11 +13,13 @@ import xbmcaddon
|
||||||
|
|
||||||
__addon__ = xbmcaddon.Addon(id='plugin.video.emby')
|
__addon__ = xbmcaddon.Addon(id='plugin.video.emby')
|
||||||
__base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'resources', 'lib')).decode('utf-8')
|
__base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'resources', 'lib')).decode('utf-8')
|
||||||
|
__libraries__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'libraries')).decode('utf-8')
|
||||||
__pcache__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('profile'), 'emby')).decode('utf-8')
|
__pcache__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('profile'), 'emby')).decode('utf-8')
|
||||||
__cache__ = xbmc.translatePath('special://temp/emby').decode('utf-8')
|
__cache__ = xbmc.translatePath('special://temp/emby').decode('utf-8')
|
||||||
|
|
||||||
sys.path.insert(0, __cache__)
|
sys.path.insert(0, __cache__)
|
||||||
sys.path.insert(0, __pcache__)
|
sys.path.insert(0, __pcache__)
|
||||||
|
sys.path.insert(0, __libraries__)
|
||||||
sys.path.append(__base__)
|
sys.path.append(__base__)
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
try:
|
try:
|
||||||
from ._version import version as __version__
|
from _version import version as __version__
|
||||||
except ImportError:
|
except ImportError:
|
||||||
__version__ = 'unknown'
|
__version__ = 'unknown'
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from ._parser import parse, parser, parserinfo
|
from _parser import parse, parser, parserinfo
|
||||||
from ._parser import DEFAULTPARSER, DEFAULTTZPARSER
|
from _parser import DEFAULTPARSER, DEFAULTTZPARSER
|
||||||
from ._parser import UnknownTimezoneWarning
|
from _parser import UnknownTimezoneWarning
|
||||||
|
|
||||||
from ._parser import __doc__
|
from _parser import __doc__
|
||||||
|
|
||||||
from .isoparser import isoparser, isoparse
|
from isoparser import isoparser, isoparse
|
||||||
|
|
||||||
__all__ = ['parse', 'parser', 'parserinfo',
|
__all__ = ['parse', 'parser', 'parserinfo',
|
||||||
'isoparse', 'isoparser',
|
'isoparse', 'isoparser',
|
|
@ -39,15 +39,15 @@ import warnings
|
||||||
from calendar import monthrange
|
from calendar import monthrange
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
|
||||||
from .. import six
|
import six
|
||||||
from ..six import binary_type, integer_types, text_type
|
from six import binary_type, integer_types, text_type
|
||||||
|
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
|
|
||||||
from .. import relativedelta
|
from dateutil import relativedelta
|
||||||
from .. import tz
|
from dateutil import tz
|
||||||
|
|
||||||
__all__ = ["parse", "parserinfo"]
|
__all__ = ["parse", "parserinfo"]
|
||||||
|
|
|
@ -9,12 +9,12 @@ ISO-8601 specification.
|
||||||
"""
|
"""
|
||||||
from datetime import datetime, timedelta, time, date
|
from datetime import datetime, timedelta, time, date
|
||||||
import calendar
|
import calendar
|
||||||
from .. import tz
|
from dateutil import tz
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from .. import six
|
import six
|
||||||
|
|
||||||
__all__ = ["isoparse", "isoparser"]
|
__all__ = ["isoparse", "isoparser"]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from ..six import PY3
|
from six import PY3
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
|
@ -14,17 +14,17 @@ import sys
|
||||||
import os
|
import os
|
||||||
import bisect
|
import bisect
|
||||||
|
|
||||||
from .. import six
|
import six
|
||||||
from ..six import string_types
|
from six import string_types
|
||||||
from ..six.moves import _thread
|
from six.moves import _thread
|
||||||
from ._common import tzname_in_python2, _tzinfo
|
from _common import tzname_in_python2, _tzinfo
|
||||||
from ._common import tzrangebase, enfold
|
from _common import tzrangebase, enfold
|
||||||
from ._common import _validate_fromutc_inputs
|
from _common import _validate_fromutc_inputs
|
||||||
|
|
||||||
from ._factories import _TzSingleton, _TzOffsetFactory
|
from _factories import _TzSingleton, _TzOffsetFactory
|
||||||
from ._factories import _TzStrFactory
|
from _factories import _TzStrFactory
|
||||||
try:
|
try:
|
||||||
from .win import tzwin, tzwinlocal
|
from win import tzwin, tzwinlocal
|
||||||
except ImportError:
|
except ImportError:
|
||||||
tzwin = tzwinlocal = None
|
tzwin = tzwinlocal = None
|
||||||
|
|
0
libraries/requests/packages/urllib3/contrib/__init__.py
Normal file
0
libraries/requests/packages/urllib3/contrib/__init__.py
Normal file
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue