diff --git a/demo.py b/demo.py index 40af5e8..2c69f46 100644 --- a/demo.py +++ b/demo.py @@ -37,5 +37,7 @@ def process(fname): if len(sys.argv) == 1: print("Usage: {} ".format(sys.argv[0])) sys.exit(0) - # else - process(sys.argv[1]) + if sys.version_info.major < 3: + process(sys.argv[1].decode(sys.getfilesystemencoding())) + else: + process(sys.argv[1])