Ejemplo n.º 1
0
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': ''})
Ejemplo n.º 2
0
def save_directories():
    global directories
    update_direcories()
    write_import_settings(directories)
    reload_directories()
Ejemplo n.º 3
0
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': ''})
Ejemplo n.º 4
0
def set_import_settings():
    config = get_import_settings_from_user()
    write_import_settings(config)
Ejemplo n.º 5
0
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': ''})