> On 13 Nov 2021, at 06:26, Abdur-Rahmaan Janhangeer <arj.pyt...@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 -- https://mail.python.org/mailman/listinfo/python-list
- Getting Directory of Command Line Entry Point... Abdur-Rahmaan Janhangeer
- Re: Getting Directory of Command Line En... David L Neil via Python-list
- Re: Getting Directory of Command Line En... dn via Python-list
- Re: Getting Directory of Command Line En... Greg Ewing
- Re: Getting Directory of Command Lin... Abdur-Rahmaan Janhangeer
- Re: Getting Directory of Command... Barry
- Re: Getting Directory of Com... Abdur-Rahmaan Janhangeer
- Re: Getting Directory of Command... Greg Ewing