> 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

Reply via email to