BurnySc2 / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
509 stars 157 forks source link

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

Open BurnySc2 opened 1 year ago

BurnySc2 commented 1 year ago

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"
            }
        }
    ]
}