upb-lea / FEM_Magnetics_Toolbox

An Open-Source FEM Magnetics Toolbox for Power Electronic Magnetic Components
https://upb-lea.github.io/FEM_Magnetics_Toolbox/
GNU General Public License v3.0
66 stars 11 forks source link

Path of config.json when working with pip-package #2

Closed gituser789 closed 3 years ago

gituser789 commented 3 years ago

config.json is stored in the current working path when working with the pip-package. Should be stored in the pip-package direction to avoid lot of 'initial questions' for onelab-path when working in different projects which include the femmt-pip-package

gituser789 commented 3 years ago

Might be useful to know: Possiblity to replace Windows Backslash to forward-slash: test.replace("\", "/")

gituser789 commented 3 years ago

Alternatively, you can prefix the entire file name string with the rawstring marker "r": r'C:\Users\narae\Desktop\alice.txt'. That way, everything in the string is interpreted as a literal character, and you don't have to escape every backslash. https://sites.pitt.edu/~naraehan/python3/file_path_cwd.html