Ed Leafe wrote:
> On Jan 31, 2009, at 7:58 AM, Bob Sysero llc Dev wrote:
>
>
>> Everything ran without a problem when I did a $ cd $HOME/temp/
>> HelloWorld
>> and then
>> python main.py. The Form came right up without any errors. I even
>> moved
>> the main into the ui directory and was able to click on the main and
>> run
>> the Form.
>>
>> Any ideas why dabo can't find ui directory where "HelloWorld.cdxml"
>> when
>> I click on the main.py from my current directory?
>>
>
>
> I don't know why it's not seeing the main.py location as your
> HomeDirectory. I just tried several variations, and they all worked as
> expected.
>
> If you want to dig a little deeper, modify the resolvePathAndUpdate()
> method in dabo/ui.uiwx/__init__.py. The second line of that method
> reads: "hd = app.HomeDirectory". Right after that add a line to
> display the value:
>
> dabo.ui.info("HomeDirectory = %s" % hd)
>
> Since you're running from the ui, use the dialog instead of 'print'.
>
>
> -- Ed Leaf
Today I ran on my Ubuntu 8.04:
cd $HOME/src/dabo; svn up
Which has solved the problem.
The new version is:
Platform: GTK
Python Version: 2.5.2 on linux2
Dabo Version: Version 0.9.1; Revision 5009M
UI Version: 2.8.8.0 on wxGTK (gtk2)
Past News
The output was:
HomeDirectory =
/home/bobsysero/temp/HelloWorld/home/bobsysero/temp/HelloWorld
The Home directory should be: /home/bobsysero/temp/HelloWorld
Ubuntu 8.04 and Ubuntu 8.10
Gnome
Platform: GTK
Python Version: 2.5.2 on linux2
Dabo Version: Version 0.9.0; Revision 4915M
UI Version: 2.8.8.0 on wxGTK (gtk2)
Thank you Ed
Bob
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]