From f84101729096a2a249c050d08bf90d7675dbb828 Mon Sep 17 00:00:00 2001 From: evilhero Date: Wed, 19 Sep 2012 09:56:09 -0400 Subject: [PATCH] fixed problem with localhost being set as SABhost with no http --- Mylar.py | 1 - mylar/__init__.py | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Mylar.py b/Mylar.py index eeccae1c..1dbd8545 100755 --- a/Mylar.py +++ b/Mylar.py @@ -38,7 +38,6 @@ def main(): mylar.FULL_PATH = os.path.abspath(__file__) mylar.PROG_DIR = os.path.dirname(mylar.FULL_PATH) - print ("the full path is : " + str(mylar.PROG_DIR)) mylar.ARGS = sys.argv[1:] # From sickbeard diff --git a/mylar/__init__.py b/mylar/__init__.py index bec09f2f..a741af1e 100755 --- a/mylar/__init__.py +++ b/mylar/__init__.py @@ -302,7 +302,11 @@ def initialize(): FOLDER_FORMAT = replace_all(FOLDER_FORMAT, folder_values) CONFIG_VERSION = '2' - + + if 'http://' not in SAB_HOST[:7]: + SAB_HOST = 'http://' + SAB_HOST + #print ("SAB_HOST:" + SAB_HOST) + if not LOG_DIR: LOG_DIR = os.path.join(DATA_DIR, 'logs')