Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
5a97bf90
Commit
5a97bf90
authored
Apr 15, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify an example to do the right thing
parent
52ad6673
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
trunk/doc/ZConfig/zconfig.tex
trunk/doc/ZConfig/zconfig.tex
+2
-3
No files found.
trunk/doc/ZConfig/zconfig.tex
View file @
5a97bf90
...
@@ -1512,10 +1512,9 @@ import ZConfig
...
@@ -1512,10 +1512,9 @@ import ZConfig
try:
try:
myfile
=
__
file
__
myfile
=
__
file
__
except NameError:
except NameError:
# really should follow symlinks here:
myfile
=
os.path.realpath
(
sys.argv
[
0
])
myfile
=
sys.argv
[
0
]
mydir
=
os.path.dirname
(
os.path.abspath
(
myfile
)
)
mydir
=
os.path.dirname
(
myfile
)
schema
=
ZConfig.loadSchema
(
os.path.join
(
mydir, 'schema.xml'
))
schema
=
ZConfig.loadSchema
(
os.path.join
(
mydir, 'schema.xml'
))
conf, handler
=
ZConfig.loadConfig
(
schema, sys.argv
[
1
])
conf, handler
=
ZConfig.loadConfig
(
schema, sys.argv
[
1
])
...
...
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