config.py.template 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import os
  2. # Do not edit this, it is this script's local directory
  3. BASE_PATH = os.path.abspath(os.path.dirname(__file__))
  4. # You probably don't want to change this but when you do point it to
  5. # where the source .csv files are.
  6. SOURCE_PATH = os.path.abspath(os.path.join(BASE_PATH, "sources/"))
  7. # When you already have the installers downloaded somewhere point it
  8. # there, else it will download them (when not found) to the set location.
  9. #CACHE_PATH = os.path.abspath(os.path.join(BASE_PATH, "../cache/dl/"))
  10. CACHE_PATH = os.path.abspath(os.path.join(BASE_PATH, "cache/"))
  11. # Download path
  12. DL_PATH = os.path.abspath(os.path.join(CACHE_PATH, "dl/"))
  13. # Download error log path
  14. DL_LOG = os.path.join(CACHE_PATH, "dl.log")
  15. # Filepath to the 'rewise' bin
  16. REWISE_DEV_PATH = os.path.abspath(os.path.join(BASE_PATH, "../../rewise"))
  17. # DO SET THIS!
  18. # Filepath to the 'rewise' v0.2 bin
  19. REWISE_02_PATH = os.path.abspath(os.path.join(CACHE_PATH, "rewise_02"))
  20. if __name__ == "__main__":
  21. print("BASE_PATH", BASE_PATH)
  22. print("CACHE_PATH", CACHE_PATH)
  23. print("DL_PATH", DL_PATH)
  24. print("DL_LOG", DL_LOG)
  25. print("SOURCE_PATH", SOURCE_PATH)
  26. print("REWISE_DEV_PATH", REWISE_DEV_PATH)
  27. print("REWISE_02_PATH", REWISE_02_PATH)