Static Python

I have found python much more usable that shell-scripts (or perl) in many small and even bigger tasks, however sadly python hasn't found it's way everywhere yet and to ensure that I have a functional python environment I created static python, a single file python interpreter.

Creating spython is quite easy, Take this script, add the modules you wan't to use in your python-programs and simply use the pythons Tools/freeze/freeze.py to create spython. I have even generated an utility for this. (Note that genfreeze uses editline and stdlog from my python utilities.

spython might not be in the path so I have used something like this in the beginning of my python programs (of course it could try to locate python as well)


If you find something useful here I'd be happy to hear about it.