mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-02 17:33:37 +00:00
Merge pull request #382 from adam111316/feature/FixLibraryImports
Fix to correctly load local libraries instead of system installed lib…
This commit is contained in:
commit
88d9feb0ac
14 changed files with 21 additions and 20 deletions
|
@ -18,6 +18,7 @@
|
||||||
* Fix getManualSearchStatus: object has no attribute 'segment'
|
* Fix getManualSearchStatus: object has no attribute 'segment'
|
||||||
* Change handling of general HTTP error response codes to prevent issues
|
* Change handling of general HTTP error response codes to prevent issues
|
||||||
* Add handling for CloudFlare custom HTTP response codes
|
* Add handling for CloudFlare custom HTTP response codes
|
||||||
|
* Fix to correctly load local libraries instead of system installed libraries
|
||||||
|
|
||||||
[develop changelog]
|
[develop changelog]
|
||||||
* Update Requests library 2.7.0 (ab1f493) to 2.7.0 (8b5e457)
|
* Update Requests library 2.7.0 (ab1f493) to 2.7.0 (8b5e457)
|
||||||
|
|
|
@ -47,7 +47,7 @@ except:
|
||||||
print 'The Python module Cheetah is required'
|
print 'The Python module Cheetah is required'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), 'lib')))
|
sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), 'lib')))
|
||||||
|
|
||||||
# We only need this for compiling an EXE and I will just always do that on 2.6+
|
# We only need this for compiling an EXE and I will just always do that on 2.6+
|
||||||
if sys.hexversion >= 0x020600F0:
|
if sys.hexversion >= 0x020600F0:
|
||||||
|
|
|
@ -24,8 +24,8 @@ import os.path
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sickbeardPath = os.path.split(os.path.split(sys.argv[0])[0])[0]
|
sickbeardPath = os.path.split(os.path.split(sys.argv[0])[0])[0]
|
||||||
sys.path.append(os.path.join(sickbeardPath, 'lib'))
|
sys.path.insert(1, os.path.join(sickbeardPath, 'lib'))
|
||||||
sys.path.append(sickbeardPath)
|
sys.path.insert(1, sickbeardPath)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import requests
|
import requests
|
||||||
|
|
|
@ -6,8 +6,8 @@ import ConfigParser
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
sickbeardPath = os.path.split(os.path.split(sys.argv[0])[0])[0]
|
sickbeardPath = os.path.split(os.path.split(sys.argv[0])[0])[0]
|
||||||
sys.path.append(os.path.join(sickbeardPath, 'lib'))
|
sys.path.insert(1, os.path.join(sickbeardPath, 'lib'))
|
||||||
sys.path.append(sickbeardPath)
|
sys.path.insert(1, sickbeardPath)
|
||||||
configFilename = os.path.join(sickbeardPath, 'config.ini')
|
configFilename = os.path.join(sickbeardPath, 'config.ini')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -17,7 +17,7 @@ import unittest
|
||||||
# Force parent directory onto path
|
# Force parent directory onto path
|
||||||
#sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
#sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
sys.path.append(os.path.abspath('../../tests'))
|
sys.path.insert(1, os.path.abspath('../../tests'))
|
||||||
|
|
||||||
|
|
||||||
import sickbeard
|
import sickbeard
|
||||||
|
|
|
@ -32,7 +32,7 @@ import os.path
|
||||||
import uuid
|
import uuid
|
||||||
import base64
|
import base64
|
||||||
import sickbeard
|
import sickbeard
|
||||||
sys.path.append(os.path.abspath('../lib'))
|
sys.path.insert(1, os.path.abspath('../lib'))
|
||||||
from sickbeard import providers, metadata, config, webserveInit
|
from sickbeard import providers, metadata, config, webserveInit
|
||||||
from sickbeard.providers.generic import GenericProvider
|
from sickbeard.providers.generic import GenericProvider
|
||||||
from providers import btn, newznab, womble, thepiratebay, torrentleech, kat, iptorrents, \
|
from providers import btn, newznab, womble, thepiratebay, torrentleech, kat, iptorrents, \
|
||||||
|
|
|
@ -2,7 +2,7 @@ import unittest
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os.path
|
import os.path
|
||||||
sys.path.append(os.path.abspath('..'))
|
sys.path.insert(1, os.path.abspath('..'))
|
||||||
|
|
||||||
from sickbeard import common
|
from sickbeard import common
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import os.path
|
||||||
from sickbeard import helpers
|
from sickbeard import helpers
|
||||||
|
|
||||||
|
|
||||||
sys.path.append(os.path.abspath('..'))
|
sys.path.insert(1, os.path.abspath('..'))
|
||||||
|
|
||||||
|
|
||||||
class HelpersTests(unittest.TestCase):
|
class HelpersTests(unittest.TestCase):
|
||||||
|
|
|
@ -7,8 +7,8 @@ import sickbeard
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from sickbeard import db
|
from sickbeard import db
|
||||||
|
|
||||||
sys.path.append(os.path.abspath('..'))
|
sys.path.insert(1, os.path.abspath('..'))
|
||||||
sys.path.append(os.path.abspath('../lib'))
|
sys.path.insert(1, os.path.abspath('../lib'))
|
||||||
|
|
||||||
sickbeard.SYS_ENCODING = 'UTF-8'
|
sickbeard.SYS_ENCODING = 'UTF-8'
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ import test_lib as test
|
||||||
|
|
||||||
import sys, os.path
|
import sys, os.path
|
||||||
|
|
||||||
sys.path.append(os.path.abspath('..'))
|
sys.path.insert(1, os.path.abspath('..'))
|
||||||
sys.path.append(os.path.abspath('../lib'))
|
sys.path.insert(1, os.path.abspath('../lib'))
|
||||||
|
|
||||||
from sickbeard.name_parser import parser
|
from sickbeard.name_parser import parser
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import unittest
|
||||||
import test_lib as test
|
import test_lib as test
|
||||||
|
|
||||||
import sys, os.path
|
import sys, os.path
|
||||||
sys.path.append(os.path.abspath('..'))
|
sys.path.insert(1, os.path.abspath('..'))
|
||||||
|
|
||||||
from sickbeard import show_name_helpers, scene_exceptions, common, name_cache
|
from sickbeard import show_name_helpers, scene_exceptions, common, name_cache
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@ import glob
|
||||||
import sys
|
import sys
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
sys.path.append(os.path.abspath('..'))
|
sys.path.insert(1, os.path.abspath('..'))
|
||||||
sys.path.append(os.path.abspath('../lib'))
|
sys.path.insert(1, os.path.abspath('../lib'))
|
||||||
|
|
||||||
import sickbeard
|
import sickbeard
|
||||||
import shutil
|
import shutil
|
||||||
|
|
|
@ -23,8 +23,8 @@ import unittest
|
||||||
import sys, os.path
|
import sys, os.path
|
||||||
import urlparse
|
import urlparse
|
||||||
|
|
||||||
sys.path.append(os.path.abspath('..'))
|
sys.path.insert(1, os.path.abspath('..'))
|
||||||
sys.path.append(os.path.abspath('../lib'))
|
sys.path.insert(1, os.path.abspath('../lib'))
|
||||||
|
|
||||||
import test_lib as test
|
import test_lib as test
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
|
|
@ -24,8 +24,8 @@ import sys, os.path
|
||||||
import datetime
|
import datetime
|
||||||
import re
|
import re
|
||||||
|
|
||||||
sys.path.append(os.path.abspath('..'))
|
sys.path.insert(1, os.path.abspath('..'))
|
||||||
sys.path.append(os.path.abspath('../lib'))
|
sys.path.insert(1, os.path.abspath('../lib'))
|
||||||
|
|
||||||
import test_lib as test
|
import test_lib as test
|
||||||
import sickbeard
|
import sickbeard
|
||||||
|
|
Loading…
Reference in a new issue