Commit 82c6e47e authored by j4cbo's avatar j4cbo

Merge pull request #48 from mrdomino/glob-print-function

Make glob.py work with python3
parents c9cebff9 4da01560
......@@ -2,6 +2,8 @@
# a helper for gyp to do file globbing cross platform
# Usage: python glob.py root_dir pattern [pattern...]
from __future__ import print_function
import fnmatch
import os
import sys
......@@ -15,4 +17,4 @@ for (dirpath, dirnames, files) in os.walk(root_dir):
for pattern in patterns:
match = match or fnmatch.fnmatch(f, pattern)
if match:
print os.path.join(dirpath, f)
print(os.path.join(dirpath, f))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment