prefix for installed scripts
vincent wehren
vincent at visualtrans.de
Thu May 6 07:06:53 EDT 2004
Kim Kulak wrote:
> Hello,
>
> I've run into a small problem with my first python program.
>
> I'm writing this program on Debian Linux so python is installed in /usr
> and sys.prefix is '/usr'. I've written a setup.py script and installed
> my program and it's configuration data with prefix = '/usr/local'. It
> installs exactly where I want it, but when I run my program 'sys.prefix'
> is '/usr' (where python is installed) and not '/usr/local' (where my
> program is installed.
>
> My question is: how do I find where _my_ program was installed?
>
> TIA,
> Kim
>
> P.S.
> Is anybody working on: "python setup.py uninstall" ?
>
How about os.path.split(sys.argv[0])[0]?
HTH,
Vincent Wehren
More information about the Python-list
mailing list