-
-
Notifications
You must be signed in to change notification settings - Fork 147
-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make a path object from a list of strings? #12
Comments
How about: new_dir = path(os.path.join(var1, var2, var3)) |
joinpath as a static method seems like a reasonable idea. It's certainly worth exploring. I often use:
But I don't like it because the syntax is incongruent (var_a is treated differently than var_b, but they fundamentally represent the same concept. |
jaraco
pushed a commit
that referenced
this issue
Feb 23, 2020
* Require toml extra for setuptools_scm setuptools_scm does not know to invoke itself if it can't read pyproject.toml. This broke sdist installs for projects deriving from skeleton: $ python -m pip install zipp --no-binary zipp Collecting zipp [...] Successfully installed zipp-0.0.0 Note the version number defaulting to '0.0.0'. Building locally only works because pep517, the build tool, depends on toml which it exposes to the build environment. * Require setuptools_scm 3.4.1 at a minimum A bare [tool.setuptools_scm] does not work in 3.4.0. * fixup! Require toml extra for setuptools_scm * fixup! Require setuptools_scm 3.4.1 at a minimum
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this use case:
where each var evaluates to string and so, the first var is not a path object.
to use path.py i need to do this:
or:
or:
and i have lists too, which is a pain:
what do you think about pass lists to the constructor? or maybe joinpath to be a staticmethod?
The text was updated successfully, but these errors were encountered: