Skip to content

Commit

Permalink
subprocess robocopy no cmd window
Browse files Browse the repository at this point in the history
  • Loading branch information
pivotiiii committed Jan 9, 2024
1 parent 3464074 commit faf0f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LibViewFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def move_folders(self, from_path, to_path):
self.master.progress.config(maximum=max_val)

p = subprocess.Popen(["robocopy", from_path, to_path, "/E", "/MOVE", "/NJH", "/NJS", "/NP"],
stdout = subprocess.PIPE, bufsize=1, universal_newlines=True)
stdout = subprocess.PIPE, bufsize=1, universal_newlines=True, creationflags=subprocess.CREATE_NO_WINDOW)
while True:
data = p.stdout.readline()
if len(data) == 0: break
Expand Down

0 comments on commit faf0f1b

Please sign in to comment.