diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2019-09-28 14:03:20 +0200 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2019-09-28 14:03:20 +0200 |
commit | f3d63966b944735d2926b0a2d5bd54aff90c1e20 (patch) | |
tree | 588c383da5aeae6b64ed1cbfe7883e1aa284be26 /dofile-in-python/target.do | |
parent | 252568121742f336a9e42e55a8985e5e7c31f49f (diff) |
* refactor dofiles in python
Diffstat (limited to 'dofile-in-python/target.do')
-rw-r--r-- | dofile-in-python/target.do | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dofile-in-python/target.do b/dofile-in-python/target.do index 5f0fadb..6897f80 100644 --- a/dofile-in-python/target.do +++ b/dofile-in-python/target.do @@ -2,5 +2,9 @@ from subprocess import run from datetime import datetime -run(['redo-ifchange', 'source']) +def redo_ifchange(dependency): + run(['redo-ifchange', dependency]) + +redo_ifchange('source') + print(datetime.now().timestamp()) |