Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Gwenaël Samain
cython
Commits
4f4fc49c
Commit
4f4fc49c
authored
Jan 25, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make pyximport work with empty path entries in sys.path (== CWD)
parent
a5cb8957
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
pyximport/pyximport.py
pyximport/pyximport.py
+7
-1
No files found.
pyximport/pyximport.py
View file @
4f4fc49c
...
@@ -176,7 +176,13 @@ class PyxImporter(object):
...
@@ -176,7 +176,13 @@ class PyxImporter(object):
paths
=
sys
.
path
paths
=
sys
.
path
join_path
=
os
.
path
.
join
join_path
=
os
.
path
.
join
is_file
=
os
.
path
.
isfile
is_file
=
os
.
path
.
isfile
for
path
in
filter
(
os
.
path
.
isdir
,
paths
):
is_dir
=
os
.
path
.
isdir
for
path
in
paths
:
if
not
is_dir
(
path
):
if
not
path
:
path
=
os
.
getcwd
()
else
:
continue
for
filename
in
os
.
listdir
(
path
):
for
filename
in
os
.
listdir
(
path
):
if
filename
==
pyx_module_name
:
if
filename
==
pyx_module_name
:
return
PyxLoader
(
fullname
,
join_path
(
path
,
filename
),
return
PyxLoader
(
fullname
,
join_path
(
path
,
filename
),
...
...
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