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
Boxiang Sun
cython
Commits
d143822a
Commit
d143822a
authored
Apr 28, 2014
by
Alok Singhal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Directory with __init__.pyc file is a package dir
Consider a directory with __init__.pyc as a package directory.
parent
af866677
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
Cython/Utils.py
Cython/Utils.py
+1
-0
No files found.
Cython/Utils.py
View file @
d143822a
...
@@ -144,6 +144,7 @@ def check_package_dir(dir, package_names):
...
@@ -144,6 +144,7 @@ def check_package_dir(dir, package_names):
@
cached_function
@
cached_function
def
is_package_dir
(
dir_path
):
def
is_package_dir
(
dir_path
):
for
filename
in
(
"__init__.py"
,
for
filename
in
(
"__init__.py"
,
"__init__.pyc"
,
"__init__.pyx"
,
"__init__.pyx"
,
"__init__.pxd"
):
"__init__.pxd"
):
path
=
os
.
path
.
join
(
dir_path
,
filename
)
path
=
os
.
path
.
join
(
dir_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