Getting Directory of Command Line Entry Point For Packages

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Nov 12 18:37:14 EST 2021


On 13/11/21 10:51 am, Abdur-Rahmaan Janhangeer wrote:
> ow do i get the path from
> which miaw the command is called from?

What exactly do you mean by "called from"?

If you want the user's working directory, os.getcwd() will
give you that.

If you want something else, you'll have to give us more
details.

-- 
Greg


More information about the Python-list mailing list