Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Returns controller base path 

        def get_controller_root():
    """ Returns controller base path """
    import controller
    return os.path.dirname(os.path.realpath(controller.__file__))
        


src/c/o/confine-controller-0.10.5/controller/management/commands/setupceleryd.py   confine-controller(Download)
from django.core.management.base import BaseCommand
 
from controller.utils.paths import get_site_root, get_controller_root
from controller.utils.system import run, check_root
 
    def handle(self, *args, **options):
        context = {'site_root': get_site_root(),
                   'username': options.get('username'),
                   'bin_path': path.join(get_controller_root(), 'bin'),
                   'processes': options.get('processes'),

src/c/o/confine-controller-0.10.5/controller/management/commands/staticcheck.py   confine-controller(Download)
from pyflakes import checker, messages
 
from controller.utils.paths import get_controller_root
 
 
    def handle(self, *filenames, **options):
        if not filenames:
            filenames = [get_controller_root(), '.']
        warnings = checkPaths(filenames)
        for warning in warnings: