On 6/27/2010 6:52 AM, Kermit Rose wrote:
I do not know how to import code from any other directory than the
default, C:\Python26.
I personally took the easy way. I put my package of modules in
pthonxy/Lib/site-packages, which is already on the search path
from package import mymod
from package.mymod import myfunc
And how do I save the code in a different directory than the default,
c:\Python26?
For miscellaneous scripts, I use a directory I added? pythonxy/misc.
I edit with IDLE. When it starts up, the current directory is pythonxy/.
When I start a new file, I immediately select save-as, change to ./misc,
and save something.py. Note that one needs to type the .py even if the
type is selected.
Also, I keep a ./misc/tem file. That is easy to select from 'recent
files' on the menu. If I decide I want to keep the file, I save under a
new name, leaving misc/tem to be erased and reused for another throwaway
script.
The python uninstaller does not delete user-made directories.
When I install a new version, it is easy to move or copy to the new tree.
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list