]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/shell.py
Rewrite parametrize to use new parametrizeWithVars
[wizard.git] / wizard / shell.py
index 1ee9bfadf04fa2a542a44a65d1ed456004a638db..723b50d4e533357cead8d952975ca97e405cae5c 100644 (file)
@@ -194,6 +194,8 @@ class Shell(object):
         on working directory context.  Keyword arguments are the
         same as :meth:`call`.
         """
+        if os.getuid():
+            return self.call(*args, **kwargs)
         uid = os.stat(os.getcwd()).st_uid
         # consider also checking ruid?
         if uid != os.geteuid():