Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
d131f572
Commit
d131f572
authored
Jun 03, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdoptions raised an exception because sys.argv is not available
if one tries to embed Zope within C/C++.
parent
4babe9e1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/zdaemon/zdoptions.py
lib/python/zdaemon/zdoptions.py
+10
-2
No files found.
doc/CHANGES.txt
View file @
d131f572
...
...
@@ -122,6 +122,9 @@ Zope Changes
Bugs fixed
- Zope can now be embedded in C/C++ without exceptions being raised
in zdoptions.
- Collector #1213: Fixed wrong labels of cache parameters
- Collector #1265: Fixed handling of orphans in ZTUtil.Batch
...
...
lib/python/zdaemon/zdoptions.py
View file @
d131f572
...
...
@@ -201,9 +201,17 @@ class ZDOptions:
# Provide dynamic default method arguments
if
args
is
None
:
try
:
args
=
sys
.
argv
[
1
:]
except
AttributeError
:
args
=
()
if
progname
is
None
:
try
:
progname
=
sys
.
argv
[
0
]
except
AttributeError
:
progname
=
'zope'
if
doc
is
None
:
import
__main__
doc
=
__main__
.
__doc__
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment