def getcwd():
 cwd = os.getcwd()
 if (is_win and is_py2):
  try:
   unicode(cwd)
  except UnicodeDecodeError:
   try:
    import win32api
    cwd = win32api.GetShortPathName(cwd)
   except ImportError:
    pass
 return cwd

def getcwd ( ) : cwd = os . getcwd ( ) if ( is_win and is_py2 ) : try : unicode ( cwd ) except UnicodeDecodeError : try : import win32api cwd = win32api . GetShortPathName ( cwd ) except ImportError : pass return cwd
wrap os .