Did I find the right examples for you? yes no

All Samples(79)  |  Call(0)  |  Derive(0)  |  Import(79)

src/d/j/django-settings-HEAD/example/app/init.py   django-settings(Download)
 
if __name__ == '__main__':
    import manage; manage.setup()
    load()
 

src/d/j/django-nested-inlines-HEAD/example/example/settings.py   django-nested-inlines(Download)
# -*- coding: utf-8 -*-
# Django settings for example project.
import os, manage
gettext = lambda s: s
PROJECT_PATH = os.path.abspath(os.path.dirname(manage.__file__))

src/m/o/mozilla_inventory-HEAD/scripts/auto_associate_systems_to_static_interfaces.py   mozilla_inventory(Download)
#!/usr/bin/python
import sys, os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)))
import manage
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings.base'
import manage

src/i/n/inventory-HEAD/scripts/auto_associate_systems_to_static_interfaces.py   inventory(Download)
#!/usr/bin/python
import sys, os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)))
import manage
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings.base'
import manage

src/r/d/rdiff-backup-HEAD/rdiff_backup/connection.py   rdiff-backup(Download)
# everything has to be available here for remote connection's use, but
# put at bottom to reduce circularities.
import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \
	   Main, rorpiter, selection, increment, statistics, manage, lazy, \
	   iterfile, rpath, robust, restore, manage, backup, connection, \

src/m/o/mozilla_inventory-HEAD/scripts/dnsbuilds/main.py   mozilla_inventory(Download)
                                os.pardir, os.pardir)))
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import manage
from mozdns.mozbind.builder import DNSBuilder, BuildError
from settings.dnsbuilds import STOP_UPDATE_FILE, LAST_RUN_FILE

src/m/o/mozilla_inventory-HEAD/scripts/csv/importer.py   mozilla_inventory(Download)
                                os.pardir, os.pardir)))
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import manage
 
from resolver import Resolver

src/i/n/inventory-HEAD/scripts/dnsbuilds/main.py   inventory(Download)
                                os.pardir, os.pardir)))
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import manage
from mozdns.mozbind.builder import DNSBuilder, BuildError
from settings.dnsbuilds import STOP_UPDATE_FILE, LAST_RUN_FILE

src/i/n/inventory-HEAD/scripts/csv/main.py   inventory(Download)
                                os.pardir, os.pardir)))
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import manage
 
from csv.importer import main

src/m/o/mozilla_inventory-HEAD/scripts/updated_hostname_report.py   mozilla_inventory(Download)
#!/usr/bin/python
import sys, os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)))
import manage

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next