[Scons-dev] python3-port branch merged to default and then closed

Dirk Bächle tshortik at gmx.de
Tue May 24 13:06:54 EDT 2016


Hi there,

On 24.05.2016 10:54, Alexandre Feblot wrote:
> Hi,
> definitely not a guru. I did this once, which was enough to get a python file loaded, and access its classes:
>
> import importlib.machinery
> my_module = importlib.machinery.SourceFileLoader('my_module', '/path/to/my_module.py').load_module()
> My_Class = my_module.My_Class
> my_class_instance = my_module.My_Class()
>

on the python-list there was a post/question about this (or at least related) today:

   https://mail.python.org/pipermail/python-list/2016-May/709388.html


Maybe someone answers...should I bring that to your attention then (I'm currently subscribed)?

Best regards,

Dirk




More information about the Scons-dev mailing list