diff options
author | Michael Dominic K <mdk@codethink.co.uk> | 2009-09-25 16:41:43 +0200 |
---|---|---|
committer | Michael Dominic K <mdk@codethink.co.uk> | 2009-09-25 16:41:43 +0200 |
commit | e52be4f5e26641ec74d59246775754372fbdf130 (patch) | |
tree | 57b01948ab28b305cedc813b714dbc3dfd8bf4ca /python | |
parent | 8351dbde6480567ef81f40429bfb39867383dceb (diff) |
Ooops, import os.
Diffstat (limited to 'python')
-rwxr-xr-x | python/context-provide | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/context-provide b/python/context-provide index beb65550..71beb155 100755 --- a/python/context-provide +++ b/python/context-provide @@ -10,6 +10,7 @@ defaulting to the latter). """ import sys +import os from ContextKit.flexiprovider import * # A custom conversion function since bool('False') == True. @@ -29,9 +30,10 @@ if len(sys.argv) < 2: sys.exit(1) sys.argv.pop(0) +# Support for new context-provide if sys.argv[0] == "--v2": sys.argv.pop(0) - cmd = "./new-context-provide" + cmd = "new-context-provide" while len(sys.argv): cmd = cmd + " " + sys.argv.pop(0) exit(os.system(cmd)) |