Run python module from console

Grant Edwards grant.b.edwards at gmail.com
Tue Sep 5 13:37:15 EDT 2017


On 2017-09-05, Andrej Viktorovich <viktorovichandrej at gmail.com> wrote:
> Hello,
>
> I suppose I can run python module by passing module as param for executable:
>
> python.exe myscr.py
>
> But how to run script when I'm inside of console and have python prompt:
>
>>>>

os.system("python.exe myscr.py")

-- 
Grant Edwards               grant.b.edwards        Yow! I've read SEVEN
                                  at               MILLION books!!
                              gmail.com            




More information about the Python-list mailing list