17 Jun
2005
17 Jun
'05
11:55 a.m.
Greg Steffensen wrote:
And when you run it from within Inkscape, when does it crash? Immediately?
Yes, immediately. Well, most of the time. And I was sitting on the couch this morning wondering why (because I've seen it work exactly one time). And it hit me that the difference is current working directory.
I think it would be less likely to fail if you did something like the following to find the glade file:
cwd = os.path.abspath(os.path.dirname((sys.argv[0]))) self.xml = gtk.glade.XML(os.path.join(cwd, 'ocal.glade'))
I've only been learning python for a month or two so I realize that there is probably a better way.
Does pyglade work on windows?
Aaron Spike