Um, check your code again. It will return *True* on Windows.
+ def _probe(self):
+ try:
+ uid = os.getuid()
+ except AttributeError:
+ # If there is no uid, chances are there is no root either
+ return True
+ return uid != 0
But then again, notice that you are using a negative "NotRunningAsRoot".
Um, check your code again. It will return *True* on Windows.
+ def _probe(self):
+ try:
+ uid = os.getuid()
+ except AttributeError:
+ # If there is no uid, chances are there is no root either
+ return True
+ return uid != 0
But then again, notice that you are using a negative "NotRunningAsRoot".