Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

            def is_admin():
        if os.geteuid() == 0:
            return True
        return False
        


src/g/a/gaffer-0.5.2/gaffer/gafferd/main.py   gaffer(Download)
from .plugins import PluginManager
from .users import AuthManager
from .util import user_path, system_path, default_path, is_admin, confirm
 
 
            return os.environ.get('GAFFERD_CONFIG')
 
        if is_admin():
            default_paths = system_path()
        else:

src/g/a/gaffer-HEAD/gaffer/gafferd/main.py   gaffer(Download)
from .plugins import PluginManager
from .users import AuthManager
from .util import user_path, system_path, default_path, is_admin, confirm
 
 
            return os.environ.get('GAFFERD_CONFIG')
 
        if is_admin():
            default_paths = system_path()
        else: