Did I find the right examples for you? yes no

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

src/d/j/django-require-1.0.6/require/storage.py   django-require(Download)
    def compile_dir_path(self, name):
        return os.path.abspath(os.path.join(self.compile_dir, require_settings.REQUIRE_BASE_URL, name))
 
    def build_dir_path(self, name):
        return os.path.abspath(os.path.join(self.build_dir, require_settings.REQUIRE_BASE_URL, name))
                    dir = env.build_dir,
                    appDir = env.compile_dir,
                    baseUrl = require_settings.REQUIRE_BASE_URL,
                )
            # Compile standalone modules.
                        include = standalone_module,
                        out = env.build_dir_path(standalone_config["out"]),
                        baseUrl = os.path.join(env.compile_dir, require_settings.REQUIRE_BASE_URL),
                    )
                else:

src/d/j/django-require-1.0.6/require/management/commands/require_init.py   django-require(Download)
        # Check if the file exists.
        for resource_name, dst_name in resources:
            dst_path = os.path.abspath(os.path.join(dst_dir, require_settings.REQUIRE_BASE_URL, dst_name))
            if os.path.exists(dst_path) and not options["force"]:
                if verbosity > 0:

src/d/j/django-require-1.0.6/require/helpers.py   django-require(Download)
def resolve_require_url(name):
    return posixpath.normpath(posixpath.join(require_settings.REQUIRE_BASE_URL, name))
 
 
def resolve_require_module(name):

src/d/j/django-require-1.0.6/require/tests.py   django-require(Download)
    def testCopyRequire(self):
        call_command("require_init", verbosity=0)
        self.assertTrue(os.path.exists(os.path.join(WORKING_DIR, require_settings.REQUIRE_BASE_URL, "require.js")))
 
    @override_settings(STATICFILES_DIRS=(WORKING_DIR,), REQUIRE_JS="../require.js")
    def testCopyRequireRelative(self):
        call_command("require_init", verbosity=0)
        self.assertTrue(os.path.exists(os.path.abspath(os.path.join(WORKING_DIR, require_settings.REQUIRE_BASE_URL, "..", "require.js"))))
    def testCopyBuildProfile(self):
        call_command("require_init", verbosity=0)
        self.assertTrue(os.path.exists(os.path.join(WORKING_DIR, require_settings.REQUIRE_BASE_URL, "app.build.js")))
 
    @override_settings(STATICFILES_DIRS=(WORKING_DIR,), REQUIRE_STANDALONE_MODULES={"main": {"build_profile": "module.build.js"}})
    def testCopyStandaloneProfile(self):
        call_command("require_init", verbosity=0)
        self.assertTrue(os.path.exists(os.path.join(WORKING_DIR, require_settings.REQUIRE_BASE_URL, "module.build.js")))
    def testCopyRequireCustomDir(self):
        call_command("require_init", dir=WORKING_DIR, verbosity=0)
        self.assertTrue(os.path.exists(os.path.join(WORKING_DIR, require_settings.REQUIRE_BASE_URL, "require.js")))