Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Sets a generic system global.

src/s/t/StrangeCase-4.6.5/strange_case/__init__.py   StrangeCase(Download)
    if not Registry.get('jinja_environment'):
        jinja_environment = StrangeCaseEnvironment(extensions=extensions, project_path=config['project_path'])
        Registry.set('jinja_environment', jinja_environment)
    else:
        jinja_environment = Registry.get('jinja_environment')
 
    if not Registry.get('plywood_environment'):
        plywood_environment = PlywoodEnv()
        Registry.set('plywood_environment', plywood_environment)
    # processors.build_page_tree - it needs special handling here.
    root_node = build_node(config, site_path, deploy_path, '')[0]
    Registry.set('root', root_node)
    root_node.generate()
 

src/s/t/StrangeCase-HEAD/strange_case/__init__.py   StrangeCase(Download)
    if not Registry.get('jinja_environment'):
        jinja_environment = StrangeCaseEnvironment(extensions=extensions, project_path=config['project_path'])
        Registry.set('jinja_environment', jinja_environment)
    else:
        jinja_environment = Registry.get('jinja_environment')
 
    if not Registry.get('plywood_environment'):
        plywood_environment = PlywoodEnv()
        Registry.set('plywood_environment', plywood_environment)
    # processors.build_page_tree - it needs special handling here.
    root_node = build_node(config, site_path, deploy_path, '')[0]
    Registry.set('root', root_node)
    root_node.generate()
 

src/s/t/StrangeCase-4.6.5/strange_case/tests/test_nodes.py   StrangeCase(Download)
        }
        config.update(addl_config)
        Registry.set('root', self)
        super(TestRootNode, self).__init__(config=config,
                                  source_path=get_test_file('a_folder/'),

src/s/t/StrangeCase-HEAD/strange_case/tests/test_nodes.py   StrangeCase(Download)
        }
        config.update(addl_config)
        Registry.set('root', self)
        super(TestRootNode, self).__init__(config=config,
                                  source_path=get_test_file('a_folder/'),