On 13/11/21 7:23 pm, Abdur-Rahmaan Janhangeer wrote:
os.getcwd is giving the path of site-packages and not
the directory from
which the command is run from.

Something must be changing the working directory before getcwd
is called. Once that happens there's no way I know of to find
out what it was. You'll have to capture it earlier in the process
somehow and pass it to where it's needed.

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to