Hi Michael,
That path looks accurate—maybe something else is missing. Below is a step-by-step guide on how to configure VS Code to execute Nullspace scripts on Windows (Note that the paths are for NS 2025). If you are not a VS Code user, you may still get some useful tips from this guide. If you’re still having problems, let me know what program you are using to execute your Python scripts.
Configure Windows Environment Variables
Step 1: Open Environment Variables
Step 2: Add Three New User Variables
Click New under “User variables” and add each variable (Note these are the default path):
NSEMPATH
Variable name: NSEMPATH
Variable value: C:\\Program Files\\Nullspace EM 2025 R1\\bin
Note: Verify your actual installation path
CUBIT_HOME
Variable name: CUBIT_HOME
Variable value: C:\\Program Files\\Nullspace EM 2025 R1\\Nullspace-Prep-2025.R1
Note: Verify your actual installation path
PYTHONPATH
Variable name: PYTHONPATH
Variable value: %CUBIT_HOME%\\bin
Step 3: Update PATH Variable
-
Select Path variable → Edit
-
Click New and add: %NSEMPATH%
-
Click New and add: %CUBIT_HOME%\\bin
-
Click OK on all dialogs
Configure VS Code Settings
Local Setup (per project)
-
In your project folder, create a .vscode folder
-
Inside .vscode, create settings.json
-
Copy and paste this content:
{
"python-envs.pythonProjects": [],
"python.defaultInterpreterPath": "C:\\\\Program Files\\\\Nullspace EM 2025 R1\\\\Nullspace-Python\\\\python.exe",
"python.terminal.activateEnvironment": true,
"python.terminal.activateEnvInCurrentTerminal": true,
"python.venvPath": "${workspaceFolder}",
"python.venvFolders": ["envs", ".pyenv", ".direnv", "venv"],
"python.terminal.executeInFileDir": true,
"python.terminal.focusAfterLaunch": true,
"python.terminal.launchArgs": [],
"python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"]
}
- Copy the
.vscode folder to other project folders as needed
Global Setup (all projects)
-
Press Ctrl + Shift + P in VS Code
-
Type and select: Preferences: Open User Settings (JSON)
-
Add these settings (merge with existing):
{
"security.workspace.trust.untrustedFiles": "open",
"claudeCode.preferredLocation": "panel",
"python.defaultInterpreterPath": "C:\\\\Program Files\\\\Nullspace EM 2025 R1\\\\Nullspace-Python\\\\python.exe"
}
Verification