ESLint-Formatter.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:ESLint-Formatter 作者: TheSavior 项目源码 文件源码
def normalize_path(path, realpath=False):
    if realpath:
      return os.path.realpath(os.path.expanduser(path))
    else:
      project_dir = sublime.active_window().project_file_name()
      if project_dir:
        cwd = os.path.dirname(project_dir)
      else:
        cwd = os.getcwd()
      return os.path.normpath(os.path.join(cwd, os.path.expanduser(path)))

  # Yield path and every directory above path.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号