code: def cygpath(filename):
      
      if sys.platform == 'cygwin':
          proc = Popen(['cygpath', '-am', filename], stdout=PIPE)
          return proc.communicate()[0].strip()
      else:
          return filename
docs: Convert a cygwin path into a windows style path