diff options
Diffstat (limited to 'dev-python/pychecker/files/pychecker-0.8.19-create_script.patch')
-rw-r--r-- | dev-python/pychecker/files/pychecker-0.8.19-create_script.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-python/pychecker/files/pychecker-0.8.19-create_script.patch b/dev-python/pychecker/files/pychecker-0.8.19-create_script.patch new file mode 100644 index 000000000000..ca4367591174 --- /dev/null +++ b/dev-python/pychecker/files/pychecker-0.8.19-create_script.patch @@ -0,0 +1,13 @@ +--- setup.py ++++ setup.py +@@ -221,7 +221,9 @@ + script_str = "%s %s %%*\n" % (sys.executable, checker_path) + else: + script_str = '#! /bin/sh\n\n%s %s "$@"\n' % (sys.executable, checker_path) +- open(script_path, "w").write(script_str) ++ script = open(script_path, "w") ++ script.write(script_str) ++ script.close() + except Exception, e: + print "ERROR: Unable to create %s: %s" % (script_path, e) + raise e |