pola-run's --powerbox option fails

Using leafpad as a test case:

$ pola-run -B --x11 --powerbox --env LD_PRELOAD=powerbox-for-gtk.so -e leafpad
Traceback (most recent call last):
  File "/work/plash/plash/python/scripts/pola-run", line 104, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/work/plash/plash/python/scripts/pola-run", line 92, in main
    powerbox.Powerbox(user_namespace = state.caller_root,
AttributeError: 'module' object has no attribute 'Powerbox'

This was broken by 510, and it looks like the code inside the "if" was never tested. This happened because of a misunderstanding about what __import__("plash.powerbox") does: it returns the plash module rather than the plash.powerbox module.

PlashIssues/PolaRunPowerboxOption (last edited 2008-07-06 16:38:04 by MarkSeaborn)