dynamic import of dynamically created modules failes

Pieter van Oostrum pieter-l at vanoostrum.org
Tue Mar 31 14:14:31 EDT 2020


Pieter van Oostrum <pieter-l at vanoostrum.org> writes:

>
> The first import creates a file __pycache__ in the directory p1.
That should be 'a directory __pycache__'
> To remove it use rmtree(path.join(P1,'__pycache__'))
> Then the second import will succeed.
> -- 
> Pieter van Oostrum
> www: http://pieter.vanoostrum.org/
> PGP key: [8DAE142BE17999C4]

-- 
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]


More information about the Python-list mailing list