joh / when-changed

Execute a command when a file is changed
Other
1.21k stars 107 forks source link

Syntax error #54

Closed imlordeyaya closed 7 years ago

imlordeyaya commented 7 years ago

Hello, I cannot find any examples using this and I'm still getting syntax error. My code is ` import watchdog import whenchanged import subprocess32

when-changed funcaptcha.png print("funcaptcha changed") `

File is in the same folder as python script. Im using python 2.7

joh commented 7 years ago

Not sure what you're trying to do here. when-changed is a command-line program, so you don't need to write any python code to use it. Try the following instead: when-changed funcaptcha.png echo "funcaptcha changed"