You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we write paths as something like "your/path/goes/here".
And then modify paths by doing something like
basefile = metadata["basefile"]
if "prefix" in metadata:
basefile = metadata["prefix"] + basefile
Those are string paths that we are concatenating using the addition operator.
This is not ideal, since it may be confusing to Windows users (who are used to seeing backslash-separated paths), the current method is not obvious, and because Python provides a more robust method of dealing with paths. We should consider using os.path or probably better, pathlib.
The text was updated successfully, but these errors were encountered:
Currently we write paths as something like
"your/path/goes/here"
.And then modify paths by doing something like
Those are string paths that we are concatenating using the addition operator.
This is not ideal, since it may be confusing to Windows users (who are used to seeing backslash-separated paths), the current method is not obvious, and because Python provides a more robust method of dealing with paths. We should consider using os.path or probably better, pathlib.
The text was updated successfully, but these errors were encountered: