My goal is to have the top level of a directory tree in the Python
path without touching anything outside the directory. I tried to
create .pth files with the top level path in every subdirectory
but this doesn't work despite working directory being part of the
Python path.
Creating the pth file in .../site-packages works but I prefer to
have everything inside the directory tree so that removing the tree
is sufficient for a complete uninstall. Any hints are appreciated,
thanks.
--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------
.
Re: Chinese character error ... I made a small script to recursively copy files from a directory tree...Chinese - Chin ...Question marks as does the os.listdir in Python.... (comp.lang.python)
Re: Finding a modules sub modules at runtime ... walk the directory tree.... where is Python "gathering that information anyway"? ... I am assuming, however, that the help function walks the directory ... (comp.lang.python)
Re: .pth files in working directory ... path without touching anything outside the directory. ... I tried to create .pth files with the top level path in every subdirectory but this doesn't work despite working directory being part of the Python path. ... have everything inside the directory tree so that removing the tree is sufficient for a complete uninstall. ... (comp.lang.python)
Re: Distributing Python programs ... Will this work with Python for Windows? ... me for a python.dll which I have found not in the directory tree but in my ...local system32 directory (I have a local Python installation).... (comp.lang.python)
Re: can tarfile maintain directory structure? ... You can use os.walk (or os.path.walk for older versions of Python) to ... recurse a directory tree.... * Invoking the script... and the 3-argument TarFile constructor,... (comp.lang.python)