Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfmanjm committed May 27, 2024
1 parent 5f0a2e0 commit 3c43c6e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,15 +906,6 @@ def _fast_stream_gcode(self, file_path, dir_path):
def _fast_stream_thread(self, cmd):
# execute the command
self.async_display(f"External Fast stream > {cmd}")
# p = subprocess.Popen(cmd, shell=True, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# result, err = p.communicate()
# for l in result.splitlines():
# self.async_display(l)
# for l in err.splitlines():
# self.async_display(l)
# if p.returncode != 0:
# self.async_display("error return code: {}".format(p.returncode))

self.start_print_time = datetime.datetime.now()
with subprocess.Popen(cmd, shell=True, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, universal_newlines=True) as p:
while True:
Expand Down

0 comments on commit 3c43c6e

Please sign in to comment.