diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-08-04 17:27:53 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-08-04 17:27:53 -0700 |
commit | e2683965e921a310e9f34d9357ee9fd7bb9e0a9f (patch) | |
tree | 9f322de2c6619058436cbca70a858d5526432d9e | |
parent | 94346db41d75aa46daf1b75bbfad176d021cbd00 (diff) |
split-to-files.py: Fix it to actually run again.
-rwxr-xr-x | split-to-files.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/split-to-files.py b/split-to-files.py index 879fcf2..4a02b02 100755 --- a/split-to-files.py +++ b/split-to-files.py @@ -113,9 +113,9 @@ def main(): if not os.path.isdir(dirname): os.mkdir(dirname) - infile = open(args.mesadebug, 'r') + with open(args.mesadebug, 'r') as infile: + shaders, programs = parse_input(infile.read()) - shaders, programs = parse_input(input.read()) write_files(dirname, shaders, programs) if __name__ == "__main__": |