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
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
Nicolas Wavrant
ZODB
Commits
a573587d
Commit
a573587d
authored
Oct 08, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a minimal docstring.
parent
17499cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/ZEO/util.py
src/ZEO/util.py
+7
-1
No files found.
src/ZEO/util.py
View file @
a573587d
...
...
@@ -26,6 +26,12 @@ def parentdir(p, n=1):
return
d
class
Environment
:
"""Determine location of the Data.fs & ZEO_SERVER.pid files.
Pass the argv[0] used to start ZEO to the constructor.
Use the zeo_pid and fs attributes to get the filenames.
"""
def
__init__
(
self
,
argv0
):
v
=
os
.
environ
.
get
(
"INSTANCE_HOME"
)
...
...
@@ -45,6 +51,6 @@ class Environment:
pid
=
os
.
environ
.
get
(
"ZEO_SERVER_PID"
)
if
pid
is
None
:
pid
=
os
.
path
.
join
(
self
.
var
,
"ZEO_SERVER.pid"
)
self
.
zeo_pid
=
pid
self
.
zeo_pid
=
pid
self
.
fs
=
os
.
path
.
join
(
self
.
var
,
"Data.fs"
)
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