diff --git a/python/ycm/paths.py b/python/ycm/paths.py index 17edafa3..292a2a17 100644 --- a/python/ycm/paths.py +++ b/python/ycm/paths.py @@ -118,6 +118,9 @@ def IsPythonVersionCorrect( path ): return False command = [ path, + # Disable site customize. Faster, and less likely to encounter + # issues with disconnected mounts (nfs, fuse, etc.) + '-S', '-c', "import sys;" "major, minor = sys.version_info[ :2 ];"