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
212a4a95
Commit
212a4a95
authored
May 28, 2004
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge Stefan's ZOPE_CONFIG patch to the HEAD.
parent
78267434
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
lib/python/Zope/Startup/run.py
lib/python/Zope/Startup/run.py
+3
-0
lib/python/Zope/__init__.py
lib/python/Zope/__init__.py
+6
-1
No files found.
lib/python/Zope/Startup/run.py
View file @
212a4a95
...
...
@@ -28,6 +28,9 @@ def configure(configfile):
configure('/path/to/configfile'); import Zope; app = Zope.app() """
import
Zope.Startup
starter
=
Zope
.
Startup
.
get_starter
()
if
not
configfile
:
import
os
configfile
=
os
.
getenv
(
"ZOPE_CONFIG"
)
opts
=
_setconfig
(
configfile
)
starter
.
setConfiguration
(
opts
.
configroot
)
starter
.
setupSecurityOptions
()
...
...
lib/python/Zope/__init__.py
View file @
212a4a95
...
...
@@ -42,6 +42,12 @@ def startup():
# Already began (and maybe finished) startup, so don't run again
return
_began_startup
=
1
# Load configuration file from (optional) environment variable
# Also see http://zope.org/Collectors/Zope/1233
import
os
configfile
=
os
.
environ
.
get
(
'ZOPE_CONFIG'
)
if
configfile
is
not
None
:
configure
(
configfile
)
from
Zope.App.startup
import
startup
as
_startup
_startup
()
...
...
@@ -71,4 +77,3 @@ import os
if
os
.
environ
.
get
(
'ZOPE_COMPATIBLE_STARTUP'
):
# Open the database immediately (see comment above).
startup
()
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