Did I find the right examples for you? yes no

All Samples(19)  |  Call(11)  |  Derive(0)  |  Import(8)
Returns project site path 

        def get_site_root():
    """ Returns project site path """
    return os.path.abspath(os.path.join(get_project_root(), '..'))
        


src/c/o/confine-controller-0.10.5/controller/management/commands/setupnginx.py   confine-controller(Download)
from django.utils.six.moves import input
 
from controller.utils.paths import get_project_root, get_site_root, get_project_name
from controller.utils.system import run, check_root, get_default_celeryd_username
 
            'project_name': get_project_name(),
            'project_root': get_project_root(),
            'site_root': get_site_root(),
            'media_root': settings.MEDIA_ROOT,
            'static_root': settings.STATIC_ROOT,

src/c/o/confine-controller-0.10.5/controller/management/commands/setupapache.py   confine-controller(Download)
from django.utils.six.moves import input
 
from controller.utils.paths import get_project_root, get_site_root, get_project_name
from controller.utils.system import run, check_root, get_default_celeryd_username
 
            'project_name': get_project_name(),
            'project_root': get_project_root(),
            'site_root': get_site_root(),
            # TODO end with single /
            'media_root': settings.MEDIA_ROOT,

src/c/o/confine-controller-0.10.5/controller/apps/pki/options.py   confine-controller(Download)
from M2Crypto import RSA, X509, EVP, ASN1, BIO
 
from controller.utils.paths import get_site_root
 
from . import settings
    def priv_key_path(self):
        return settings.PKI_CA_PRIV_KEY_PATH % { 'site_root': get_site_root() }
 
    @property
    def pub_key_path(self):
        return settings.PKI_CA_PUB_KEY_PATH % { 'site_root': get_site_root() }
 
    @property
    def cert_path(self):
        return settings.PKI_CA_CERT_PATH % { 'site_root': get_site_root() }

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/apps/maintenance/settings.py   confine-controller(Download)
from django.conf import settings
 
from controller.utils.paths import get_site_root
 
 
MAINTENANCE_KEY_PATH = getattr(settings, 'MAINTENANCE_KEY_PATH',
    '%(site_root)s/pki/maintenance_rsa'  % { 'site_root': get_site_root() })
 
MAINTENANCE_PUB_KEY_PATH = getattr(settings, 'MAINTENANCE_PUB_KEY_PATH',
    '%(site_root)s/pki/maintenance_rsa.pub' % { 'site_root': get_site_root() })

src/c/o/confine-controller-0.10.5/controller/apps/firmware/plugins/usbimage.py   confine-controller(Download)
import os
 
from django import forms
 
from controller.utils.paths import get_site_root
 
 
usb_image = FIRMWARE_PLUGINS_USB_IMAGE % {'site_root': get_site_root()}
 
 

src/c/o/confine-controller-0.10.5/controller/management/commands/postupgradecontroller.py   confine-controller(Download)
            # Add PKI directories
            from pki import ca
            from controller.utils.paths import get_site_root
            site_root = get_site_root()
            username = run("stat -c %%U %s" % site_root)

src/c/o/confine-controller-0.10.5/controller/apps/monitor/management/commands/setuplocalmonitor.py   confine-controller(Download)
from django.core.management.base import BaseCommand
 
from controller.utils.paths import get_site_root
from controller.utils.system import run, get_default_celeryd_username
 
    def handle(self, *args, **options):
        context = {
                'username': options.get('username'),
                'manage_file': os.path.join(get_site_root(), 'manage.py'),
            }