简体   繁体   中英

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 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. Using that tool, it seems I always need to specify a .py file to run. Is there a way I can configure the run configuration tool to run my script with the -m flag similar to the above?

目前无法执行。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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