22 Dec
2003
22 Dec
'03
10:07 a.m.
On Monday 22 December 2003 12:45 pm, Dmitry Vasiliev wrote: ...
1. python -p package_name
Equivalent to:
import package_name ... The main idea is to treating package as a program and run package initialization code from command line. The advantage is zipping all program modules in one zip archive and running the program from command line without unzipping it, like Java's jar's. But this idea need more thoughts however...
Couldn't you use: python -c "import package_name" for this purpose even today? Alex