forked from joh/when-changed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small change preserved Python v2.6 compatibility; use subprocess inst…
…ead of os.system. With the `subprocess` module, you don't need to worry about having to quote a file name with spaces. E.g. with file '/home/carl/temp/My Obnoxious File With Spaces.txt' Before: # Notice the double quoting required. ./when-changed -r /home/carl/temp -c /bin/ls -l '"%f"' After: # More intuitive. ./when-changed -r /home/carl/temp -c /bin/ls -l %f Also, at the recommendation of the Standard Library, use the drop-in replacement `subprocess32` if it is available.
- Loading branch information
1 parent
9dee022
commit e3b0ba6
Showing
1 changed file
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters