Jun-11-2022, 11:30 PM
(Jun-11-2022, 09:10 AM)Larz60+ Wrote: Assume for illustration that you had the following relative file structure for your project:
├── data
│ ├── csv
│ └── tmp
├── docs
├── src
└── venv
└── ...
Note: this class will create the directories if they don't already
exist. It is non-destructive, ald will leave existing paths intact.
then a class to access any part of that path would look like {snip}
Thanks. I like the file structure and the class methods. If I wanted to use the class in other Python scripts and the file was called myPath.py , is it simply a matter of including
from MyPaths import MyPathsor do I have to setup something like a library ?