parameters: (oldFile, newFile, verbose=True)
docstring: Safely create a symlink
docstring_summary: Safely create a symlink
docstring_tokens: Safely create a symlink
function: def makeSymLink(oldFile, newFile, verbose=True):
      '''Safely create a symlink'''
  
      oldPath = os.path.abspath(oldFile)
      try:
          asp_system_utils.mkdir_p(os.path.dirname(newFile))
          if verbose:
              print("ln -s " + oldPath + " " + newFile)
          os.symlink(oldPath, newFile)
      except OSError as e:
          if e.errno == errno.EEXIST:
              os.remove(newFile)
              os.symlink(oldPath, newFile)
function_tokens: def makeSymLink ( oldFile , newFile , verbose = True ) : oldPath = os . path . abspath ( oldFile ) try : asp_system_utils . mkdir_p ( os . path . dirname ( newFile ) ) if verbose : print ( "ln -s " + oldPath + " " + newFile ) os . symlink ( oldPath , newFile ) except OSError as e : if e . errno == errno . EEXIST : os . remove ( newFile ) os . symlink ( oldPath , newFile )