def initialize_default_import_settings_file(): # Create default import settings file import_settings_path = get_settings('import') if not os.path.isfile(import_settings_path): if os.path.isfile('/this_is_running_in_docker'): write_import_settings({ 'inbox': '/dicom/inbox', 'imported': '/dicom/imported', 'review': '/dicom/review' }) else: write_import_settings({'inbox': '', 'imported': '', 'review': ''})
def save_directories(): global directories update_direcories() write_import_settings(directories) reload_directories()
def initialize_default_import_settings_file(): # Create default import settings file import_settings_path = os.path.join(script_dir, "preferences/import_settings.txt") if not os.path.isfile(import_settings_path): write_import_settings({'inbox': '', 'imported': '', 'review': ''})
def set_import_settings(): config = get_import_settings_from_user() write_import_settings(config)
def initialize_default_import_settings_file(): # Create default import settings file import_settings_path = get_settings('import') if not os.path.isfile(import_settings_path): write_import_settings({'inbox': '', 'imported': '', 'review': ''})