mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
8 lines
279 B
Python
8 lines
279 B
Python
import sys, os
|
|
with open(sys.argv[1], 'r') as fd:
|
|
content = '\n'.join(line.strip() for line in fd if line.strip())
|
|
if len(sys.argv) == 3:
|
|
content = content.replace('Win32', sys.argv[2]).replace('x64', sys.argv[2])
|
|
with open(sys.argv[1], 'w') as fd:
|
|
fd.write(content)
|