Browse Source

Runner fs encoding

old/unicode
Ruud 11 years ago
parent
commit
f99b40c2f3
  1. 1
      couchpotato/environment.py
  2. 1
      couchpotato/runner.py

1
couchpotato/environment.py

@ -14,6 +14,7 @@ class Env(object):
''' Environment variables '''
_app = None
_encoding = 'UTF-8'
_fs_encoding = 'UTF-8'
_debug = False
_dev = False
_settings = Settings()

1
couchpotato/runner.py

@ -86,6 +86,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En
encoding = 'UTF-8'
Env.set('encoding', encoding)
Env.set('fs_encoding', sys.getfilesystemencoding())
# Do db stuff
db_path = sp(os.path.join(data_dir, 'database'))

Loading…
Cancel
Save