The python charm generator ships with a module error
Bug #1343416 reported by
Charles Butler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charm Tools |
Expired
|
Undecided
|
Unassigned |
Bug Description
When not using a symlinked tree of files against a common hooks.py, the source contains an error.
Traceback (most recent call last):
File "hooks/
from start import start
ImportError: No module named start
since the file is not named start.py python has no concept of how to load this without using some sorcery such as imp.
Suggest to move this logic into a common.py file, and include that in the hooks.
To post a comment you must log in.
Is this a problem in a template? Could you elaborate?