コード例 #1
0
 def run(self, creator, symlinks):
     bin_dir = self.dest(creator, self.src).parent
     method = symlink if self.must_copy is False and symlinks else copy
     dest = bin_dir / self.base
     method(self.src, dest)
     make_exe(dest)
     for extra in self.aliases:
         link_file = bin_dir / extra
         if link_file.exists():
             link_file.unlink()
         if symlinks:
             link_file.symlink_to(self.base)
         else:
             copy(self.src, link_file)
         make_exe(link_file)
コード例 #2
0
 def run(self, creator, symlinks):
     bin_dir = self.dest(creator, self.src).parent
     dest = bin_dir / self.base
     method = self.method(symlinks)
     method(self.src, dest)
     if not symlinks:
         make_exe(dest)
     for extra in self.aliases:
         link_file = bin_dir / extra
         if link_file.exists():
             link_file.unlink()
         if symlinks:
             link_file.symlink_to(self.base)
         else:
             copy(self.src, link_file)
         if not symlinks:
             make_exe(link_file)
コード例 #3
0
ファイル: copy.py プロジェクト: timgates42/virtualenv
 def _sync(self, src, dst):
     copy(src, dst)