![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: /usr/bin/env python, force a version
From: Fredrik Lundh <fredrik@pythonware.com>
Date: Thu Oct 06 2005 - 13:46:45 CEST
"manatlan@gmail.com" wrote:
> I've got a trouble, and i think that anybody there can help me
> I'd like to make my script (or a starter script)
the approach used in bzr might work for you:
#
import os, sys
try:
REINVOKE = "__MYAPP_REINVOKE"
if version_info < NEED_VERS:
if hasattr(os, "unsetenv"):
#
import myapp
# end of boot script
(the actual bzr source is shipped under the GPL, but 1) it's trivial, and 2) I contributed
</F>
|