import os from lib.get_args import get_arguments def get_config(): ARGS = get_arguments() FIELDS = [ "documentSpace", "documentName", "documentTitle", "attachmentsFolderPath", "documentContent", "pilot", "types", "thematiques", ] return { "absolute_starting_path": os.path.abspath( os.path.normpath(ARGS.importdirectory) ), "document_space": ARGS.documentspace, "document_space_title": ARGS.documentspacetitle, "export_directory": ARGS.exportdirectory, "pilot": ARGS.pilot, "starting_path": os.path.normpath(ARGS.importdirectory), "fields": FIELDS, }