From 5e8cdbfb9af4d12cd1c6cda85c9325aae9ad868d Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 16 Nov 2014 04:01:15 -0800 Subject: [PATCH] Fix #4 for github module not found issue --- SickBeard.py | 5 ++++- sickbeard/__init__.py | 6 ------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/SickBeard.py b/SickBeard.py index ec9cdd83..c3cfc965 100755 --- a/SickBeard.py +++ b/SickBeard.py @@ -54,6 +54,7 @@ import locale import datetime import threading import getopt +import github import sickbeard from sickbeard import db, logger, network_timezones, failed_history, name_cache @@ -68,12 +69,14 @@ throwaway = datetime.datetime.strptime('20110101', '%Y%m%d') signal.signal(signal.SIGINT, sickbeard.sig_handler) signal.signal(signal.SIGTERM, sickbeard.sig_handler) - class SickRage(object): def __init__(self): # system event callback for shutdown/restart sickbeard.events = Events(self.shutdown) + # github api + sickbeard.gh = github.Github().get_organization(sickbeard.GIT_ORG).get_repo(sickbeard.GIT_REPO) # wanted branch + # daemon constants self.runAsDaemon = False self.CREATEPID = False diff --git a/sickbeard/__init__.py b/sickbeard/__init__.py index c53861eb..6cd95d48 100755 --- a/sickbeard/__init__.py +++ b/sickbeard/__init__.py @@ -26,8 +26,6 @@ import re import sys import os.path -import github - from threading import Lock from sickbeard import providers, metadata, config, webserveInit @@ -541,10 +539,6 @@ def initialize(consoleLogging=True): CheckSection(CFG, 'Pushbullet') CheckSection(CFG, 'Subtitles') - # github api - gh = github.Github().get_organization(GIT_ORG).get_repo(GIT_REPO) - - # wanted branch BRANCH = check_setting_str(CFG, 'General', 'branch', '') # git_remote