mirror of
https://github.com/evilhero/mylar
synced 2025-01-03 05:24:43 +00:00
fixed problem with localhost being set as SABhost with no http
This commit is contained in:
parent
a7f766f318
commit
f841017290
2 changed files with 5 additions and 2 deletions
1
Mylar.py
1
Mylar.py
|
@ -38,7 +38,6 @@ def main():
|
||||||
mylar.FULL_PATH = os.path.abspath(__file__)
|
mylar.FULL_PATH = os.path.abspath(__file__)
|
||||||
|
|
||||||
mylar.PROG_DIR = os.path.dirname(mylar.FULL_PATH)
|
mylar.PROG_DIR = os.path.dirname(mylar.FULL_PATH)
|
||||||
print ("the full path is : " + str(mylar.PROG_DIR))
|
|
||||||
mylar.ARGS = sys.argv[1:]
|
mylar.ARGS = sys.argv[1:]
|
||||||
|
|
||||||
# From sickbeard
|
# From sickbeard
|
||||||
|
|
|
@ -303,6 +303,10 @@ def initialize():
|
||||||
|
|
||||||
CONFIG_VERSION = '2'
|
CONFIG_VERSION = '2'
|
||||||
|
|
||||||
|
if 'http://' not in SAB_HOST[:7]:
|
||||||
|
SAB_HOST = 'http://' + SAB_HOST
|
||||||
|
#print ("SAB_HOST:" + SAB_HOST)
|
||||||
|
|
||||||
if not LOG_DIR:
|
if not LOG_DIR:
|
||||||
LOG_DIR = os.path.join(DATA_DIR, 'logs')
|
LOG_DIR = os.path.join(DATA_DIR, 'logs')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue