Skip to content

Fix Windows path handling and runtime compatibility issues#46

Merged
guanpingxiao merged 7 commits into
PCART-tools:mainfrom
guanpingxiao:Dev
Apr 20, 2026
Merged

Fix Windows path handling and runtime compatibility issues#46
guanpingxiao merged 7 commits into
PCART-tools:mainfrom
guanpingxiao:Dev

Conversation

@guanpingxiao
Copy link
Copy Markdown
Collaborator

Summary

  • improve Python executable resolution across environments
  • fix Windows path and runPath handling in preprocess and runtime commands
  • repair garbled comments in map.py and escape-sequence handling in changeAnalyze.py
  • reset per-project fixed logs before each new run to avoid appending across runs

Included commits

  • e4fc73b Fix Python 3 executable resolution across environments
  • 2a50a85 Fix changeAnalyze escape warnings
  • 9d9f5b4 Fix quoted shell paths
  • b9873eb Fix garbled comments in map.py
  • 90c71f5 Fix runPath separator handling
  • 7313359 Fix preprocess runPath segment counting
  • 35f1bc0 Fix reset fixed log for each project run

Validation

  • python -m pytest tests\test_changeAnalyze.py -p no:cacheprovider

Unify interpreter lookup, reject Python 2 candidates, and cache resolved executables across the main workflow.
Use raw strings for Union and Optional patterns.
Quote command paths that may contain spaces.
Restore misencoded comments in Map/map.py.
Normalize Windows-style runPath separators before counting directory levels in Change, Map, and Repair path resolution logic.
Normalize trailing separators before counting runPath directory levels in preprocess instrumentation paths.
Delete an existing Report/<project>_fixed_log.txt before a new run so fixed logs do not append across runs.
@guanpingxiao guanpingxiao merged commit 782b237 into PCART-tools:main Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant