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
e6662560
Commit
e6662560
authored
Feb 23, 2005
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward port recent mods from 2.7 branch.
parent
6e008d50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
test.py
test.py
+5
-7
No files found.
test.py
View file @
e6662560
...
...
@@ -369,23 +369,21 @@ class ImmediateTestRunner(unittest.TextTestRunner):
class
PathInit
:
def
__init__
(
self
,
build
,
libdir
=
None
):
# Calculate which directories we're going to add to sys.path.
self
.
libdir
=
"lib/python"
self
.
libdir
=
os
.
path
.
join
(
'lib'
,
'python'
)
# Hack sys.path
self
.
home
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
sys
.
argv
[
0
]))
# test.py lives in $ZOPE_HOME/bin when installed ...
dir
,
file
=
os
.
path
.
split
(
self
.
home
)
if
file
==
'bin'
:
self
.
home
=
dir
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
self
.
home
,
self
.
libdir
))
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
self
.
home
,
self
.
libdir
,
'third_party'
,
'docutils'
))
self
.
cwd
=
os
.
path
.
realpath
(
os
.
getcwd
())
# Hack again for external products.
if
libdir
:
self
.
libdir
=
os
.
path
.
join
(
self
.
cwd
,
libdir
)
self
.
libdir
=
os
.
path
.
realpath
(
os
.
path
.
join
(
self
.
cwd
,
libdir
)
)
else
:
self
.
libdir
=
os
.
path
.
join
(
self
.
cwd
,
self
.
libdir
)
real_libdir
=
os
.
path
.
realpath
(
self
.
libdir
)
if
real_libdir
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
real_libdir
)
self
.
libdir
=
os
.
path
.
realpath
(
os
.
path
.
join
(
self
.
cwd
,
self
.
libdir
))
if
self
.
libdir
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
self
.
libdir
)
# Determine where to look for tests
if
test_dir
:
self
.
testdir
=
os
.
path
.
abspath
(
os
.
path
.
join
(
self
.
cwd
,
test_dir
))
...
...
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