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
65f6c4f9
Commit
65f6c4f9
authored
Feb 07, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify slightly.
parent
77015590
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
lib/python/Testing/__init__.py
lib/python/Testing/__init__.py
+4
-6
No files found.
lib/python/Testing/__init__.py
View file @
65f6c4f9
...
...
@@ -13,18 +13,16 @@
"""
Set up testing environment
$Id: __init__.py,v 1.
6 2002/08/14 22:01:39 mj
Exp $
$Id: __init__.py,v 1.
7 2003/02/07 21:28:13 fdrake
Exp $
"""
import
os
def
pdir
(
path
):
return
os
.
path
.
split
(
path
)[
0
]
# Set the INSTANCE_HOME to the Testing package directory
os
.
environ
[
'INSTANCE_HOME'
]
=
INSTANCE_HOME
=
pdir
(
__file__
)
os
.
environ
[
'INSTANCE_HOME'
]
=
INSTANCE_HOME
=
os
.
path
.
dirname
(
__file__
)
# Set the SOFTWARE_HOME to the directory containing the Testing package
os
.
environ
[
'SOFTWARE_HOME'
]
=
SOFTWARE_HOME
=
pdir
(
INSTANCE_HOME
)
# XXX This isn't a change, so why?
os
.
environ
[
'SOFTWARE_HOME'
]
=
SOFTWARE_HOME
=
os
.
path
.
dirname
(
INSTANCE_HOME
)
# Note: we don't set os.environ['ZEO_CLIENT'] anymore because we
# really do need all the products to be initialized. Some tests
...
...
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