[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Run python module from console

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!!