python-sc2 icon indicating copy to clipboard operation
python-sc2 copied to clipboard

Add .vscode/launch.json to be able to run example bots

Open BurnySc2 opened this issue 2 years ago • 0 comments

Although this is probably bad for people who run different editors (vim, pycharm etc.), adding such a config could display (with the help of comments) which variables may be changed to run python-sc2 correctly.

An example config could be

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": true,
            "env": {
                "PYTHONPATH": "${workspaceFolder}",
                "SC2PATH": "/home/user/games/starcraft/drive_c/Program Files (x86)/StarCraft II",
                "SC2PF": "WineLinux",
                "WINE": "/usr/bin/wine"
            }
        }
    ]
}

BurnySc2 avatar Sep 18 '23 15:09 BurnySc2