Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
Normalize a file/dir name for comparison purposes

        def normalize_path(filename):
    """Normalize a file/dir name for comparison purposes"""
    return os.path.normcase(os.path.realpath(filename))
        


src/m/e/merlin-1-1.0/merlin/command/egg_flags.py   merlin(Download)
    def finalize_options(self):
        import os
        from merlin import Distribution, PathMetadata, normalize_path
 
        ei = self.get_finalized_command("egg_info")
        # Make a distribution for the package's source
        self.dist = Distribution(
            normalize_path(self.egg_path),
            PathMetadata(self.egg_path, os.path.abspath(ei.egg_info)),
            project_name = ei.egg_name

src/m/e/merlin-1-1.0/merlin/command/install_deps.py   merlin(Download)
from merlin.command.easy_install import easy_install
from distutils.util import convert_path
from merlin import Distribution, PathMetadata, normalize_path
from distutils import log
from distutils.errors import *
        # Make a distribution for the package's source
        self.dist = Distribution(
            normalize_path(self.egg_path),
            PathMetadata(self.egg_path, os.path.abspath(ei.egg_info)),
            project_name = ei.egg_name

src/m/e/merlin-1-1.0/merlin/command/develop.py   merlin(Download)
from merlin.command.easy_install import easy_install
from distutils.util import convert_path
from merlin import Distribution, PathMetadata, normalize_path
from distutils import log
from distutils.errors import *
        # Make a distribution for the package's source
        self.dist = Distribution(
            normalize_path(self.egg_path),
            PathMetadata(self.egg_path, os.path.abspath(ei.egg_info)),
            project_name = ei.egg_name