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
Kirill Smelkov
cython
Commits
b792ef1c
Commit
b792ef1c
authored
Jan 17, 2013
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #175 from steinn/pyximport_fix
fix import of pyx modules when '' is in sys.path
parents
c6f5ffd5
3d17fc9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
pyximport/pyximport.py
pyximport/pyximport.py
+5
-1
No files found.
pyximport/pyximport.py
View file @
b792ef1c
...
@@ -291,17 +291,21 @@ class PyxImporter(object):
...
@@ -291,17 +291,21 @@ 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
is_abs
=
os
.
path
.
isabs
abspath
=
os
.
path
.
abspath
#is_dir = os.path.isdir
#is_dir = os.path.isdir
sep
=
os
.
path
.
sep
sep
=
os
.
path
.
sep
for
path
in
paths
:
for
path
in
paths
:
if
not
path
:
if
not
path
:
path
=
os
.
getcwd
()
path
=
os
.
getcwd
()
elif
not
is_abs
(
path
):
path
=
abspath
(
path
)
if
is_file
(
path
+
sep
+
pyx_module_name
):
if
is_file
(
path
+
sep
+
pyx_module_name
):
return
PyxLoader
(
fullname
,
join_path
(
path
,
pyx_module_name
),
return
PyxLoader
(
fullname
,
join_path
(
path
,
pyx_module_name
),
pyxbuild_dir
=
self
.
pyxbuild_dir
,
pyxbuild_dir
=
self
.
pyxbuild_dir
,
inplace
=
self
.
inplace
,
inplace
=
self
.
inplace
,
language_level
=
self
.
language_level
)
language_level
=
self
.
language_level
)
# not found, normal package, not a .pyx file, none of our business
# not found, normal package, not a .pyx file, none of our business
_debug
(
"%s not found"
%
fullname
)
_debug
(
"%s not found"
%
fullname
)
return
None
return
None
...
...
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