dsh-plugin-pscad-expert-vyma 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/plugin.yaml +1 -1
- package/tools/main.py +3 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/plugin.yaml
CHANGED
package/tools/main.py
CHANGED
|
@@ -607,7 +607,9 @@ def connect_and_load_project(project_name: str,
|
|
|
607
607
|
if not ok:
|
|
608
608
|
return _err(msg)
|
|
609
609
|
|
|
610
|
-
folder
|
|
610
|
+
# folder 回退链:显式传入 → PSCAD_WORK_DIR 环境变量 → 用户目录 ~/pscad_cases
|
|
611
|
+
# (无盘符依赖,任何机器开箱即用;create_case 分支会自动创建该目录)
|
|
612
|
+
folder = folder or DEFAULT_FOLDER or os.path.expanduser('~/pscad_cases')
|
|
611
613
|
_prj_folder = folder
|
|
612
614
|
pscx_path: Optional[str] = None # 实际落盘的 .pscx 路径(探测后回报)
|
|
613
615
|
|