Skip to content

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

Description

@BurnySc2

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

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions