docs: def platform_path(path):
      r"""
      Returns platform specific path for pyinstaller usage
  
      Args:
          path (str):
  
      Returns:
          str: path2
  
      CommandLine:
          python -m utool.util_path --test-platform_path
  
      Example:
          >>> # ENABLE_DOCTEST
          >>> # FIXME: find examples of the wird paths this fixes (mostly on win32 i think)
          >>> from utool.util_path import *  # NOQA
          >>> import utool as ut
          >>> path = 'some/odd/../weird/path'
          >>> path2 = platform_path(path)
          >>> result = str(path2)
          >>> if ut.WIN32:
          ...     ut.assert_eq(path2, r'some\weird\path')
          ... else:
          ...     ut.assert_eq(path2, r'some/weird/path')
  
      Example:
          >>> # ENABLE_DOCTEST
          >>> from utool.util_path import *  # NOQA
          >>> import utool as ut    # NOQA
          >>> if ut.WIN32:
          ...     path = 'C:/PROGRA~2'
          ...     path2 = platform_path(path)
          ...     assert path2 == u'..\\..\\..\\..\\Program Files (x86)'
      """
      try:
          if path == '':
              raise ValueError('path cannot be the empty string')
          # get path relative to cwd
          path1 = truepath_relative(path)
          if sys.platform.startswith('win32'):
              path2 = expand_win32_shortname(path1)
          else:
              path2 = path1
      except Exception as ex:
          util_dbg.printex(ex, keys=['path', 'path1', 'path2'])
          raise
      return path2