|
@ -315,6 +315,7 @@ def real_path(loc, path): |
|
|
path = path.strip() |
|
|
path = path.strip() |
|
|
else: |
|
|
else: |
|
|
path = '' |
|
|
path = '' |
|
|
|
|
|
if path: |
|
|
if path.startswith('~'): |
|
|
if path.startswith('~'): |
|
|
path = path.replace('~', sabnzbd.DIR_HOME+'/', 1) |
|
|
path = path.replace('~', sabnzbd.DIR_HOME+'/', 1) |
|
|
if sabnzbd.WIN32: |
|
|
if sabnzbd.WIN32: |
|
@ -322,6 +323,8 @@ def real_path(loc, path): |
|
|
path = os.path.join(loc, path) |
|
|
path = os.path.join(loc, path) |
|
|
elif path[0] != '/': |
|
|
elif path[0] != '/': |
|
|
path = os.path.join(loc, path) |
|
|
path = os.path.join(loc, path) |
|
|
|
|
|
else: |
|
|
|
|
|
path = loc |
|
|
|
|
|
|
|
|
return os.path.normpath(os.path.abspath(path)) |
|
|
return os.path.normpath(os.path.abspath(path)) |
|
|
|
|
|
|
|
|