Commit 4da01560 authored by Steven Dee's avatar Steven Dee

Make glob.py work with python3

parent d1153188
......@@ -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