def _symlink(src, dest):
 try:
  os.symlink(src, dest)
 except OSError:
  warn(('Could not create symbolic link %s. Check that your partition handles symbolic links. The file will be copied instead.' % dest))
  shutil.copy(src, dest)

def _symlink ( src , dest ) : try : os . symlink ( src , dest ) except OSError : warn ( ( 'Could not create symbolic link %s. Check that your partition handles symbolic links. The file will be copied instead.' % dest ) ) shutil . copy ( src , dest )
create a symlink .