简体   繁体   English

如何使用-m标志在Eclipse PyDev中运行python脚本

[英]How do you run a python script from within Eclipse PyDev using -m flag

My python script is executed via the -m flag: 我的python脚本通过-m标志执行:

python -m MyPythonModule.MyPhythonModule command_line_arg1 command_line_arg2

However, I can't seem to get to this to work in Eclipse PyDev using the run configuration. 但是,我似乎无法使用运行配置在Eclipse PyDev中工作。 Using that tool, it seems I always need to specify a .py file to run. 使用该工具,似乎总是需要指定一个.py文件来运行。 Is there a way I can configure the run configuration tool to run my script with the -m flag similar to the above? 有没有一种方法可以配置运行配置工具以使用与-m标志相似的脚本来运行脚本?

目前无法执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM