You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PCART Bot edited this page May 8, 2026
·
3 revisions
Configuration Guide
Complete reference for PCART configuration files.
Configuration File Location
Place your JSON configuration file in the Configure/ directory.
Configuration Fields
Field
Type
Required
Description
projPath
string
Yes
Absolute path to your project root directory
runCommand
string
Yes
Command to run your project (see supported formats below)
runFilePath
string
Yes
Path to source files relative to projPath
libName
string
Yes
Library name as used in your code
currentVersion
string
Yes
Current library version
targetVersion
string
Yes
Target library version
currentEnv
string
Yes
Path to virtual environment root directory with current version
targetEnv
string
Yes
Path to virtual environment root directory with target version
Field Details
projPath
Absolute path to your project root directory.
Linux:
"projPath": "/home/user/myproject"
Windows:
"projPath": "C:\\Users\\user\\myproject"
runCommand
The command used to run your project. PCART automatically detects the Python executable from your virtual environment and normalizes the command using shlex-based parsing.
Supported formats:
Format
Example
Notes
python <script>
python run.py
Most common
python <script> <args>
python run.py --verbose
Arguments preserved
python3 <script>
python3 main.py
Linux only
py -X.Y <script>
py -3.9 train.py
Windows py launcher
python -m <module>
python -m pytest
Module execution
Console script
pytest, flask run
Resolved from currentEnv/targetEnv bin or Scripts dir
How PCART resolves the Python executable:
If the command starts with a Python executable name (python, python3, python3.x), PCART locates the matching interpreter inside the configured virtual environment (currentEnv or targetEnv).
If the command starts with the Windows py launcher, the version selector (-3.9, -3) is stripped and the remaining command is run with the virtual environment's Python.
If the command starts with -m or a .py file directly, it is treated as a Python command.
Otherwise, PCART treats it as a console script and resolves the executable from <env>/bin/ (Linux) or <env>/Scripts/ (Windows).
Examples:
// Standard Python script"runCommand": "python run.py"// Python script with arguments"runCommand": "python run.py --epochs 100 --batch-size 32"// Linux python3"runCommand": "python3 src/main.py"// Windows py launcher"runCommand": "py -3.9 test_script.py"// Module execution"runCommand": "python -m pytest tests/"// Console script (Flask, pytest, etc.)"runCommand": "flask run"
Note: The currentEnv/targetEnv paths must be the root directory of the virtual environment (e.g., /home/user/anaconda3/envs/myenv), not the full path to the Python executable. PCART internally locates the interpreter based on the platform conventions:
Linux: <env>/bin/python
Windows: <env>/python.exe or <env>/Scripts/python.exe
runFilePath
Path to the directory containing source files to analyze, relative to projPath.
Scenario
Example
Entry file in project root
"runFilePath": ""
Entry file in first-level subdirectory
"runFilePath": "src"
Examples:
runCommand
projPath
runFilePath
python run.py
/home/user/project
""
python src/main.py
/home/user/project
"src"
python src/utils/main.py
/home/user/project
"src/utils"
libName
The library name as it appears in your Python code imports.
Library
libName
PyTorch
torch
NumPy
numpy
SciPy
scipy
Pillow
PIL
scikit-learn
sklearn
Matplotlib
matplotlib
Pandas
pandas
Example:
# In your codeimporttorchfromPILimportImage# Configuration"libName": "torch"# or"libName": "PIL"
currentVersion / targetVersion
The current and target library versions you want to upgrade between.