Esempio n. 1
0
 def __init__(self, **kwargs):
     if (os.geteuid() != 0 and '--help' not in sys.argv and
         '-h' not in sys.argv):
         # Inform people with insufficient privileges before parsing args
         # so they don't have to wade through required arg messages and
         # whatnot first.
         raise Exception("must be superuser")
     BundleCreator.__init__(self, **kwargs)
Esempio n. 2
0
 def __init__(self, **kwargs):
     if (os.geteuid() != 0 and '--help' not in sys.argv and
         '-h' not in sys.argv):
         # Inform people with insufficient privileges before parsing args
         # so they don't have to wade through required arg messages and
         # whatnot first.
         raise Exception("must be superuser")
     BundleCreator.__init__(self, **kwargs)