diff options
| author | eroen | 2013-11-14 11:34:21 +0100 |
|---|---|---|
| committer | eroen | 2013-11-14 14:47:10 +0100 |
| commit | a217a82444aed528a2760521056b467cf8215650 (patch) | |
| tree | b6b91c9739781e6331ee238483f51c6cf9265d7c /ga_wrapper | |
| download | git-annex-wrapper-a217a82444aed528a2760521056b467cf8215650.tar.gz git-annex-wrapper-a217a82444aed528a2760521056b467cf8215650.tar.bz2 git-annex-wrapper-a217a82444aed528a2760521056b467cf8215650.tar.xz | |
initial commit
Commands are passed through
Diffstat (limited to 'ga_wrapper')
| -rw-r--r-- | ga_wrapper/__init__.py | 0 | ||||
| -rw-r--r-- | ga_wrapper/wrapper.py | 22 |
2 files changed, 22 insertions, 0 deletions
diff --git a/ga_wrapper/__init__.py b/ga_wrapper/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ga_wrapper/__init__.py diff --git a/ga_wrapper/wrapper.py b/ga_wrapper/wrapper.py new file mode 100644 index 0000000..397d0cc --- /dev/null +++ b/ga_wrapper/wrapper.py @@ -0,0 +1,22 @@ +''' +By eroen, 2013 + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. +''' + +import sys +import subprocess + + +def fallthrough(args): + proc = subprocess.Popen(args) + return proc.wait() + + +def generic_wrapper(): + args = sys.argv + if args[0].endswith('git-annex-wrapper'): + del(args[0]) + return fallthrough(args) |
