Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Commit cfdbe6e

Browse files
4.0.1 (fixed a problem when file is frozen)
1 parent 1cfd76c commit cfdbe6e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

APLauncher.pyw

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class App:
175175
json.dump(self.accounts, open(os.path.join(self.minecraftdir, "launcher_profiles.json"), "w"), indent=2)
176176
json.dump(self.cache, open("cache.json", "w"), indent=2)
177177
self.win.withdraw()
178-
quit()
178+
sys.exit()
179179

180180
def get_versions(self):
181181
"""Get all available versions and parses them"""
@@ -340,7 +340,9 @@ class App:
340340
cmdargs,
341341
shell=True,
342342
text=True,
343-
stdout=subprocess.PIPE
343+
stdout=subprocess.PIPE,
344+
stderr=subprocess.DEVNULL,
345+
stdin=subprocess.DEVNULL
344346
)
345347
line = sb.stdout.readline().rstrip()
346348
while True:

0 commit comments

Comments
 (0)