Skip to content

Windows: generated run.bat/debug.bat don't start Python nodes since tool paths are quoted #638

Open

Description

@Siddhanthguptaa

On dev, a study generated for Windows writes:

run.bat:   start /B /D "CZ" "python" "controller.py" >"CZ"\concoreout.txt
debug.bat: start /D "CZ" cmd /K "python" "controller.py"
  • start uses its first quoted argument as the window title, so in run.bat "python" becomes the title and nothing is launched (concoreout.txt stays empty, no node process).
  • In debug.bat, cmd /K strips the first and last quote when the command has more than two, giving 'python" "controller.py' is not recognized. With a tool path containing spaces it fails with 'C:\Users\...\open' is not recognized.

This started when tool executables began to be quoted (#541); 2.4.0 on main is not affected. Octave and MATLAB lines follow the same pattern.

Steps (Windows 11, Python 3.11):

  1. python mkconcore.py demo/sample.graphml demo out windows
  2. cd out && build.bat && maxtime.bat 15 && run.bat
  3. After ~30 s CZ\concoreout.txt and PZ\concoreout.txt are empty and no python process is running. On my machine Windows instead opened pm.py in the default editor (the .py file association), since start treated "python" as the title and pm.py as the thing to open.

With start "" /B /D ... in run.bat (and cmd /K ""python" "controller.py"" in debug.bat) the same study runs to simtime 15 with retry=0.

I have a small fix with a test and will open a PR against dev.

Activity

  1. github-actions commented on Nov 4, 2026

    @github-actions

    👋 Welcome to the CONTROL-CORE Project, @Siddhanthguptaa! Thank you for opening your first issue in concore.
    We appreciate your contribution to the organization and will review it as soon as possible.

    Before we get started, please check out these resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions