On 26 avr, 10:04, pierreth <pierre.thibau...@gmail.com> wrote:
> if "my_module" in dir() and DEBUG:

I made a test.

The 'in dir()' does not work because the variable is not there yet.

You can write:

import my_module
if DEBUG:
    my_module = reload(my_module)

reload is working well.

As Jonathan said, you can continue to local_import instead if you
prefer.


Reply via email to