summaryrefslogtreecommitdiff
path: root/ga_wrapper/wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'ga_wrapper/wrapper.py')
-rw-r--r--ga_wrapper/wrapper.py22
1 files changed, 22 insertions, 0 deletions
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)