Ed Leafe wrote:
On Jan 10, 2006, at 8:40 PM, Don Taylor wrote:
If I do this then I seem to run into a path problem, my module
'foobar.py' is in the same directory as the rest of the pieces of
this app, but it is not being found:
Traceback (most recent call last):
File "C:\PYTHON24\Lib\site-packages\Dabo-0.5-py2.4.egg\dabo\lib
\eventMixin.py"
, line 87, in raiseEvent
bindingFunction(event)
File "", line 2, in onHit
ImportError: No module named foobar
Hmmm... I'm not getting that at all. Try this: from the designer
form, type Ctrl-D to bring up the Command Window. Type 'import foobar'
there - does that work?
No it does not, and the path to the program being tested does not appear
in the sys.path. It looks like it runs in the context of the directory
that the Designer is in because daboide is in sys.path.
When I run the application stand-alone from a cmd box whose cwd is the
application's home directory then the module is found and executes
correctly.
I think that this makes sense, but it means that the Run ... menu item
in the Editing window does not really work...
Don.
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users