Managing Paths #62
Unanswered
cpaniaguam
asked this question in
Conventions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see that in Python there are a number of ways to manipulate paths.
One can use
os.path.join
to splice up the parts of a path (as @hollandjg suggested above):One can turn a string into a PosixPath object that supports path joining with strings using the
/
operator:Once can also just pass the pieces to join to the
Path
constructor:And there are other ways! Should a convention for handling paths be adopted for this project? I am curious about what your preferences are.
@kmilo9999 @hollandjg
Beta Was this translation helpful? Give feedback.
All reactions