Create a PyCharm configuration that runs a module a la “python -m foo”

后端 未结 5 1201
长情又很酷
长情又很酷 2020-12-07 20:38

My python entrypoint needs to be run as a module (not a script), as in:

python -m foo.bar

The following does not work (and is not supposed

5条回答
  •  长情又很酷
    2020-12-07 21:18

    IntelliJ IDEA / PyCharm 2017

    Field "Script" is optional in the recent versions of JetBrains IDEs. Specifying -m foo.bar in "Script parameters" is enough:

提交回复
热议问题