How can I package a python script and modules into a single script?
Fuzzyman
fuzzyman at gmail.com
Wed Nov 23 04:45:45 EST 2005
You could use my includer script.
http://www.voidspace.org.uk/python/recipebook.shtml#includer
It effectively adds an include direct to python scripts.
##include module.py
from module import *
You then run ``includer.py infilename outfilename``
This replaces the ``##include ..`` with the source of the included
module and *removes* the import statement.
This makes it possible to maintain modules separately, but distribute
as a single script.
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
More information about the Python-list
mailing list