Browse Source

Windows: convert explicit INI-path to Unicode.

On Windows, the -f parameter passes an 8bit ASCII string instead of Unicode.
pull/402/head
shypike 10 years ago
parent
commit
555aadc83e
  1. 2
      SABnzbd.py

2
SABnzbd.py

@ -760,6 +760,8 @@ def evaluate_inipath(path):
but not a leading dot.
foldername is enough, the standard name will be appended.
"""
if sabnzbd.WIN32:
path = unicoder(path)
path = os.path.normpath(os.path.abspath(path))
inipath = os.path.join(path, DEF_INI_FILE)
if os.path.isdir(path):

Loading…
Cancel
Save