This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Anthony Sottile, bradengroom, hoffman, loewis, serhiy.storchaka, vstinner
Date 2018-10-29.11:38:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540813115.84.0.788709270274.issue1154351@psf.upfronthosting.co.za>
In-reply-to
Content
man get_current_dir_name():

       get_current_dir_name()  will  malloc(3) an array big enough to hold the
       absolute pathname of the current working directory.  If the environment
       variable  PWD is set, and its value is correct, then that value will be
       returned.  The caller should free(3) the returned buffer.

Oh sorry, I missed that part.

In this case, we should expose os.get_current_dir_name() using this function. But it's a glibc extension:

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

       get_current_dir_name():
              _GNU_SOURCE

I'm not sure about adding shutil.get_current_dir_name() which would use os.get_current_dir_name(), or reimplement it in pure Python.
History
Date User Action Args
2018-10-29 11:38:35vstinnersetrecipients: + vstinner, loewis, hoffman, serhiy.storchaka, Anthony Sottile, bradengroom
2018-10-29 11:38:35vstinnersetmessageid: <1540813115.84.0.788709270274.issue1154351@psf.upfronthosting.co.za>
2018-10-29 11:38:35vstinnerlinkissue1154351 messages
2018-10-29 11:38:35vstinnercreate