Plugin import problem when executing console scripts
|Reported by:||dmartinc||Owned by:||dmartinc|
There are problems when executing code from the console (as opposed to code executed by mod-python) that involves dynamic importing of plugin modules.
The code that takes care of this task is in MaKaC/plugins/init.py .
For example, it seems that the path that the MaKaC/plugins/init.py believes it's in is different depending on where the execution came from (Apache or console). For Apache, it's an absolute path, but relative if coming from the console.
There are also other problems like importing a plugin not importing some of it's sub-modules...
These problems do not affect the working of plugins in Apache but give problems when executing Python unit tests that involve plugins.
Change History (5)
comment:4 Changed 3 years ago by david.martin.clavo@…
- Resolution set to fixed
- Status changed from accepted to closed