You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get_config.py 713B

123456789101112131415161718192021222324252627
  1. import os
  2. from lib.get_args import get_arguments
  3. def get_config():
  4. ARGS = get_arguments()
  5. FIELDS = [
  6. "documentSpace",
  7. "documentName",
  8. "documentTitle",
  9. "attachmentsFolderPath",
  10. "documentContent",
  11. "pilot",
  12. "types",
  13. "thematiques",
  14. ]
  15. return {
  16. "absolute_starting_path": os.path.abspath(
  17. os.path.normpath(ARGS.importdirectory)
  18. ),
  19. "document_space": ARGS.documentspace,
  20. "document_space_title": ARGS.documentspacetitle,
  21. "export_directory": ARGS.exportdirectory,
  22. "pilot": ARGS.pilot,
  23. "starting_path": os.path.normpath(ARGS.importdirectory),
  24. "fields": FIELDS,
  25. }