completion.py 文件源码

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

项目:pythonVSCode 作者: DonJayamanne 项目源码 文件源码
def __init__(self):
        self.default_sys_path = sys.path
        self._input = io.open(sys.stdin.fileno(), encoding='utf-8')
        if (os.path.sep == '/') and (platform.uname()[2].find('Microsoft') > -1):
            # WSL; does not support UNC paths
            self.drive_mount = '/mnt/'
        elif sys.platform == 'cygwin':
            # cygwin
            self.drive_mount = '/cygdrive/'
        else:
            # Do no normalization, e.g. Windows build of Python.
            # Could add additional test: ((os.path.sep == '/') and os.path.isdir('/mnt/c'))
            # However, this may have more false positives trying to identify Windows/*nix hybrids
            self.drive_mount = ''
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号