Run python module from console

Rustom Mody rustompmody at gmail.com
Tue Sep 5 11:19:14 EDT 2017


On Tuesday, September 5, 2017 at 8:45:00 PM UTC+5:30, Andrej Viktorovich 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:
> 
> >>>

>> import myscr
# Note no .py extension



More information about the Python-list mailing list