Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
0038c29e
Commit
0038c29e
authored
Aug 05, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check deleted modules in dataflow/ to fix 'git pull' users
parent
326f335e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tensorpack/dataflow/__init__.py
tensorpack/dataflow/__init__.py
+4
-0
No files found.
tensorpack/dataflow/__init__.py
View file @
0038c29e
...
@@ -19,8 +19,12 @@ def _global_import(name):
...
@@ -19,8 +19,12 @@ def _global_import(name):
__SKIP
=
set
([
'dftools'
,
'dataset'
,
'imgaug'
])
__SKIP
=
set
([
'dftools'
,
'dataset'
,
'imgaug'
])
_CURR_DIR
=
os
.
path
.
dirname
(
__file__
)
for
_
,
module_name
,
__
in
iter_modules
(
for
_
,
module_name
,
__
in
iter_modules
(
[
os
.
path
.
dirname
(
__file__
)]):
[
os
.
path
.
dirname
(
__file__
)]):
srcpath
=
os
.
path
.
join
(
_CURR_DIR
,
module_name
+
'.py'
)
if
not
os
.
path
.
isfile
(
srcpath
):
continue
if
not
module_name
.
startswith
(
'_'
)
and
\
if
not
module_name
.
startswith
(
'_'
)
and
\
module_name
not
in
__SKIP
:
module_name
not
in
__SKIP
:
_global_import
(
module_name
)
_global_import
(
module_name
)
...
...
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