Python-autocomplete-extrapaths-not-work

Describe the Bug

I hope to add some additional paths to the automatic parsing paths. I tried “.env”, “python.analysis.extraPaths”, and “python.analysis.extraPaths”, but none of them worked.

Steps to Reproduce

my setting.json

“python.envFile”: “D:/Seafile/MayaLib/dcc_scripts/.env”,
“python.autoComplete.extraPaths”: [
“C:/CgTeamWork_v7/bin/base”,
“D:/Seafile/MayaLib/dcc_scripts/gen_utils”,
“D:/Seafile/MayaLib/dcc_scripts/asset_library”,
“D:/Seafile/MayaLib/dcc_scripts/pyblish_pipe”、
“D:/Seafile/MayaLib/dcc_scripts/maya_script”、

D:/Seafile/MayaLib/packages”、
“D:/Seafile/MayaLib/packages_py3”、
“D:/Seafile/MayaLib/packages_2024”、
“D:/Seafile/MayaLib/dcc_scripts/standalone”,
],
“python.analysis.extraPaths”:[
“C:/ CgTeamWork_v7 / bin / base”,
“D:/ Seafile / MayaLib / dcc_scripts / gen_utils”,
“D:/ Seafile / MayaLib / dcc_scripts / asset_library”

“D:/ Seafile / MayaLib / dcc_scripts
/ pyblish_pipe”,
“D:/Seafile/MayaLib/packages/maya-stubs”、
“D:/Seafile/MayaLib/packages_py3”、
“D:/Seafile/MayaLib/packages_2024”、
“D:/Seafile/MayaLib/dcc_scripts/standalone”、
],

my .env
PYTHONPATH =“C:/CgTeamWork_v7/bin/base;D:/Seafile/MayaLib/dcc_scripts/gen_utils;D:/Seafile/MayaLib/dcc_scripts/asset_library; /maya_script;D:/Seafile/MayaLib/packages;D:/Seafile/MayaLib/packages/maya-stubs;D:/Seafile/MayaLib/packages_py3;D:/Seafile/MayaLib/packages_2024;D:/Seafile/MayaLib/dcc_scripts/standalone”

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

版本: 1.2.1 (user setup)
提交: 1.99.3
日期: 031e7e0ff1e2eda9c1a0f5df67d44053b059c5d0
Electron: 2025-07-03T06:16:02.610Z
ElectronBuildId: 34.5.1
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.19.0
OS: 13.2.152.41-electron.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Hi @beimingxinglian , could you install the Anysphere Python extension, and then set the paths under the cursorpyright.analysis.extraPaths setting? We do not read the settings python.analysis.extraPaths or python.autoComplete.extraPaths.

1 Like

OK, it turns out this is the function of the plugin. I was using VSCode before. It seems that the plugin is incompatible, causing this issue.

In VSCode, python extension is provided by ms-python, these two variables are read. I directly used “import vscode”
Anyway, thank you. My problem has been solved.