~diesch/druwez/master

« back to all changes in this revision

Viewing changes to druwez/settings.py

  • Committer: Florian Diesch
  • Date: 2020-02-13 18:34:32 UTC
  • Revision ID: git-v1:4f5909ac5a42d1a4f31fc3f569a85c4847fbf766
Use default converters if no converter config is found

* added data/converters-default.json
* druwez/convertersettings.py
  - get_converters(): Rewad default converter file if no converter
    file found
* druwez/settings.py
  - added DEFAULT_CONVERTERS_FILE
* run.py
  - set druwez.settings.DEFAULT_CONVERTERS_FILE

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
ICON_DIR = os.path.join(DATA_DIR, 'icons')
67
67
LOCALE_DIR='/usr/share/locale'
68
68
 
 
69
DEFAULT_CONVERTERS_FILE = os.path.join(DATA_DIR, 'converters-default.json')
 
70
 
69
71
def get_ui_file(name):
70
72
    return os.path.join(UI_DIR, name)
71
73