Re: location of an Epiphany extension...







On Thu, 15 Jan 2009, Wouter Bolsterlee wrote:

2009-01-15 klockan 10:40 skrev Maciej Katafiasz:
On Thu, Jan 15, 2009 at 10:04 AM, Diego Escalante Urrelo
<diegoe gnome org> wrote:
 I`m asking this, because i`m writing a python extension that depends
 on a Glade file. I could just use some "try-except" block, to check the
existence of that Glade file, but maybe there`s an "official way"-or
something?
You could try checking if the file exists in ~, if not then load it
from /usr/lib/; there's no official way that I know of.
This has been asked before. It'd be good to file a bug against epi's
extension API to have a non-hacky way to do it.

Perhaps in the mean time fiddling with __FILE__ might work?

   — Wouter


Thanks for the quick replies :D
Hm, i wasn`t aware of the __file__ variable, this will do the work.
It would be nice if ephy`s extension api would provide some functionality to solve this :-)

Makis


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]