Commit 9e54d6bb authored by 's avatar

Added a fix to allow embedded interpreters with no sys.argv to use ZP.

parent 2e8b45c4
......@@ -82,7 +82,15 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
__version__='$Revision: 1.8 $'[11:-2]
__version__='$Revision: 1.9 $'[11:-2]
# This allows ZPublisher to work with embedded interpreters
# that for some reason have no sys.argv (required by cgi.py).
import sys
if not hasattr(sys):
sys.argv=[]
from Publish import publish_module, Retry
......
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