Browse Source

Use `with` in `macdeployqtplus` script.

0.15
Chris Gavin 7 years ago
parent
commit
e8babc4330
  1. 5
      contrib/macdeploy/macdeployqtplus

5
contrib/macdeploy/macdeployqtplus

@ -674,9 +674,8 @@ else: @@ -674,9 +674,8 @@ else:
if verbose >= 2:
print("+ Installing qt.conf +")
f = open(os.path.join(applicationBundle.resourcesPath, "qt.conf"), "wb")
f.write(qt_conf.encode())
f.close()
with open(os.path.join(applicationBundle.resourcesPath, "qt.conf"), "wb") as f:
f.write(qt_conf.encode())
# ------------------------------------------------

Loading…
Cancel
Save