Skip to content

Commit

Permalink
revert sub process call to subprocess.call
Browse files Browse the repository at this point in the history
see joh#74 (review)

Signed-off-by: Eric Villard <[email protected]>
  • Loading branch information
eviweb committed Mar 25, 2019
1 parent 36786ad commit bb537e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whenchanged/whenchanged.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def run_command(self, thefile):
print_message += '.' + now.strftime('%f') + ", running '" + ' '.join(self.command) + "'"
if print_message:
print('==> ' + print_message + ' <==')
subprocess.Popen(new_command, shell=(len(new_command) == 1), env=self.process_env)
subprocess.call(new_command, shell=(len(new_command) == 1), env=self.process_env)
self.last_run = time.time()

def is_interested(self, path):
Expand Down

0 comments on commit bb537e0

Please sign in to comment.