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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/y/py2app-0.8/py2app/build_app.py   py2app(Download)
import pkg_resources
 
from py2app.apptemplate.setup import main as script_executable
from py2app.util import mergecopy, make_exec
 
                    fn = fn[:-4]
 
                src_fn = script_executable(arch=self.arch, secondary=True)
                tgt_fn = os.path.join(target.appdir, 'Contents', 'MacOS', os.path.basename(fn))
                mergecopy(src_fn, tgt_fn)
                fn = fn[:-4]
 
            src_fn = script_executable(arch=self.arch, secondary=True)
            tgt_fn = os.path.join(self.appdir, 'Contents', 'MacOS', os.path.basename(fn))
            mergecopy(src_fn, tgt_fn)