[Tutor] Alternative to importing

Julius Hamilton juliushamilton100 at gmail.com
Sun Oct 3 11:21:21 EDT 2021


Hey,

Is there any alternative to importing a Python script in another script for
the methods defined in it, where Python when executing one script will just
automatically look in the enclosing folder for any other Python scripts,
and check them for methods? Perhaps there could be a Python option, like
python -“importall” runscript.py? Or some other way of eliminating import
statements?

Thanks very much,
Julius


More information about the Tutor mailing list