diff options
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-x | scripts/contrib/python/generate-manifest-2.7.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/contrib/python/generate-manifest-2.7.py b/scripts/contrib/python/generate-manifest-2.7.py index 7b43137bd8..5c527241e7 100755 --- a/scripts/contrib/python/generate-manifest-2.7.py +++ b/scripts/contrib/python/generate-manifest-2.7.py | |||
@@ -149,7 +149,10 @@ class MakefileMaker: | |||
149 | if __name__ == "__main__": | 149 | if __name__ == "__main__": |
150 | 150 | ||
151 | if len( sys.argv ) > 1: | 151 | if len( sys.argv ) > 1: |
152 | os.popen( "rm -f ./%s" % sys.argv[1] ) | 152 | try: |
153 | os.unlink(sys.argv[1]) | ||
154 | except Exception: | ||
155 | sys.exc_clear() | ||
153 | outfile = file( sys.argv[1], "w" ) | 156 | outfile = file( sys.argv[1], "w" ) |
154 | else: | 157 | else: |
155 | outfile = sys.stdout | 158 | outfile = sys.stdout |