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
add optional CWD argument to os.path.abspath() #37875
Comments
I would like to add an optional second argument to (expand-file-name NAME &optional DEFAULT-DIRECTORY) The patch is against python 2.2.2. I am running RH 6.3 thanks |
Logged In: YES sorry, trying again to attach the patch.. |
Logged In: YES What about ntpath.py and os2emxpath.py? |
Logged In: YES And don't forget riscospath.py found in the plat-risc directory in Lib in the source distribution. =) |
Logged In: YES i can submit a patch for those other versions of abspath. |
Logged In: YES Well, depends on what you mean by 'support'. I don't think |
What's your motivating use-case for this? |
Well, it's been 4 years and I'd pretty much forgotten about this.. but I believe I had a case where my program had some configuration item - the base directory w.r.t. which other files were to be found. So if you have one of those file names, it's convenient to use abspath() except you don't want it relative to the process' cwd, you want it relative to the configured directory. Anyway, it's no big deal, you can just close this if you want. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: