beam-tracing / Scotty

Beam tracing code for diagnostics
https://scotty.readthedocs.io/en/latest/
GNU General Public License v3.0
7 stars 4 forks source link

Output paths default to current working directory #35

Closed ZedThree closed 2 years ago

ZedThree commented 2 years ago

Uses the pathlib module to handle paths. This handles the Windows/Linux directory separators for us using the / operator.

Previously the default output directory was os.path.dirname(os.path.abspath(__file__)) which is now the scotty package itself. Instead we use pathlib.Path(".") which will be the current working directory, wherever the Scotty script is called from.