BurnySc2 / python-sc2

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

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

Open BurnySc2 opened 10 months ago

BurnySc2 commented 10 months 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"
            }
        }
    ]
}