1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 03:22:22 -05:00

Fix #3 for github module not found issue

This commit is contained in:
echel0n 2014-11-16 03:50:58 -08:00
parent 5d46d267b6
commit 50dd3a531d

View File

@ -23,15 +23,13 @@ import datetime
import socket import socket
import os import os
import re import re
import sys
import os.path
import github
from threading import Lock from threading import Lock
# apparently py2exe won't build these unless they're imported somewhere
import sys
import os.path
sys.path.append(os.path.abspath('../lib'))
from github import Github
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 ezrss, tvtorrents, btn, newznab, womble, thepiratebay, torrentleech, kat, iptorrents, \ from providers import ezrss, tvtorrents, btn, newznab, womble, thepiratebay, torrentleech, kat, iptorrents, \
@ -544,7 +542,7 @@ def initialize(consoleLogging=True):
CheckSection(CFG, 'Subtitles') CheckSection(CFG, 'Subtitles')
# github api # github api
gh = Github().get_organization(GIT_ORG).get_repo(GIT_REPO) gh = github.Github().get_organization(GIT_ORG).get_repo(GIT_REPO)
# wanted branch # wanted branch
BRANCH = check_setting_str(CFG, 'General', 'branch', '') BRANCH = check_setting_str(CFG, 'General', 'branch', '')