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.
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 thescotty
package itself. Instead we usepathlib.Path(".")
which will be the current working directory, wherever the Scotty script is called from.