Commit 6074dbdc authored by Olivier Cros's avatar Olivier Cros

Conformity to chapter 27.5 on python doc - __name__ and execfile

In order to adapt our code to python standards and buildout functionment,
we had to precise the title '__main__' to launch scripts neotestrunner,
neoadmin, ....

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2619 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 5b00c9a9
...@@ -90,7 +90,7 @@ class NEOProcess(object): ...@@ -90,7 +90,7 @@ class NEOProcess(object):
# Child # Child
try: try:
sys.argv = [command] + args sys.argv = [command] + args
execfile(command, {}) execfile(command, {"__name__": "__main__"})
except (SystemExit, KeyboardInterrupt): except (SystemExit, KeyboardInterrupt):
self._exit() self._exit()
except: except:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment