mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-31 01:24:37 +02:00
truncate file on open
This commit is contained in:
parent
2da2b2705a
commit
2b447001d1
@ -43,7 +43,7 @@ def main():
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
path = sys.argv[1]
|
path = sys.argv[1]
|
||||||
try:
|
try:
|
||||||
file = open(path, "xb")
|
file = open(path, "wb")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user