main logo
Subject: [dabo-users] W2K, Dabo Runtime, ClassDesigner.py problem
Author: Robert Davidson
Posted: 2007/05/31 17:37:49
 
View Entire Thread
New Search


I'm just starting with Dabo, so I'm using Dabo Runtime on W2K. But I hit this problem with ClassDesigner.py when I upgraded dabo and ide to 0.8 - although it ran OK before.



C:\drt\ide>\drt\daborun_console ClassDesigner.py

INSERTED C:\drt INTO PATH

INSERTING C:\drt\ide INTO PATH

--------------------------------------------

RUN

ARGS ['\\drt\\daborun_console', 'ClassDesigner.py']

PATH ['"C:\\drt\\ide"', 'C:\\drt', 'C:\\drt\\library.zip']

CURDIR C:\drt\ide

self.prg: ClassDesigner.py ClassDesigner

self.module: None

PTHDIR C:\drt\ide

BEFORE EXEC ISFILE: INSERTING C:\drt\ide INTO PATH

Dabo Info Log: Thu May 31 22:32:29 2007: PyOpenGL not present, so dGlWindow is not loaded.

Dabo Info Log: Thu May 31 22:32:30 2007: 1 database connection definition(s) loaded.

Dabo Info Log: Thu May 31 22:32:30 2007: User interface already set to 'wx', so dApp didn't touch it.

Dabo Info Log: Thu May 31 22:32:30 2007: wxPython Version: 2.6.3.3 wxMSW (unicode)

EXECFILE ERROR arg is a built-in class



At this point it all ends abruptly. Probably I'm doing something stupid, but I can't see what, so I poked about a bit and got it working again with the following patch.



--- ClassDesigner.py.original 2007-05-28 00:31:42.806574400 +0100

+++ ClassDesigner.py 2007-05-31 23:26:37.582868800 +0100

@@ -196,7 +196,7 @@



# Temporary hack to turn off the SizerPaletteForm

import inspect

- pth = os.path.split(inspect.getfile(self.__class__))[0]

+ pth = os.path.split(inspect.getfile(sys._getframe()))[0]

if not os.path.exists(os.path.join(pth, "nopalette.flag")):

palette = self.SizerPalette

palette.Controller = self



I have not tested this in any other environment, but it does not appear to be a "Windows only" thing.


I'm very impressed with Dabo so far - and the screencasts are excellent - Thanks!

--
Robert




___________________________________________________________
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html



 
©2007 Robert Davidson
<-- Prior Message New Search Next Message -->