Getting Directory of Command Line Entry Point For Packages
Barry
barry at barrys-emacs.org
Sat Nov 13 03:55:23 EST 2021
> On 13 Nov 2021, at 06:26, Abdur-Rahmaan Janhangeer <arj.python at gmail.com> wrote:
>
> Only thing is that os.getcwd is giving the path of site-packages and not
> the directory from
> which the command is run from.
In which case the code is doing a os.chdir() before the call to os.getwd().
You need to call getwd() before that happens.
Barry
More information about the Python-list
mailing list