Skip to content

Commit e8babc4

Browse files
committed
Use with in macdeployqtplus script.
1 parent 4f3ac7d commit e8babc4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

contrib/macdeploy/macdeployqtplus

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,9 +674,8 @@ else:
674674
if verbose >= 2:
675675
print("+ Installing qt.conf +")
676676

677-
f = open(os.path.join(applicationBundle.resourcesPath, "qt.conf"), "wb")
678-
f.write(qt_conf.encode())
679-
f.close()
677+
with open(os.path.join(applicationBundle.resourcesPath, "qt.conf"), "wb") as f:
678+
f.write(qt_conf.encode())
680679

681680
# ------------------------------------------------
682681

0 commit comments

Comments
 (0)