Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
82c6e47e
Commit
82c6e47e
authored
Jan 14, 2015
by
j4cbo
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #48 from mrdomino/glob-print-function
Make glob.py work with python3
parents
c9cebff9
4da01560
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
example/glob.py
example/glob.py
+3
-1
No files found.
example/glob.py
View file @
82c6e47e
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
# a helper for gyp to do file globbing cross platform
# a helper for gyp to do file globbing cross platform
# Usage: python glob.py root_dir pattern [pattern...]
# Usage: python glob.py root_dir pattern [pattern...]
from
__future__
import
print_function
import
fnmatch
import
fnmatch
import
os
import
os
import
sys
import
sys
...
@@ -15,4 +17,4 @@ for (dirpath, dirnames, files) in os.walk(root_dir):
...
@@ -15,4 +17,4 @@ for (dirpath, dirnames, files) in os.walk(root_dir):
for
pattern
in
patterns
:
for
pattern
in
patterns
:
match
=
match
or
fnmatch
.
fnmatch
(
f
,
pattern
)
match
=
match
or
fnmatch
.
fnmatch
(
f
,
pattern
)
if
match
:
if
match
:
print
os
.
path
.
join
(
dirpath
,
f
)
print
(
os
.
path
.
join
(
dirpath
,
f
)
)
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