Skip to content

Do not replace the os.sep #188

Closed Answered by arizvisa
Harding-Stardust asked this question in Q&A
Discussion options

You must be logged in to vote

Still, its purpose is to normalize the database path. This is useful when you're emitting a path cross-platform and is purely so that you concatenate or split the path without having to depend on a module. This is useful when you attach a python script to a database that serializes all your changes to a directory that is relative to the location of your database. This enables that same script to work regardless of the platform it is running on and allows you to avoid depending on anything within the os module.

Since it doesn't cause any issues with the Python interpreter on the windows platform, I'm still unsure about its strangeness and how it directly affects your scripts.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by arizvisa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #164 on December 07, 2023 18:52.