[sugar] sugar activities dir

Gonzalo Delgado gonzalo
Fri Jan 19 10:15:30 EST 2007


2007/1/19, Marco Pesenti Gritti <mpg at redhat.com>:
>
> sugar.env.sugar_activities_dir is actually obsolete, it was used by the
> old activities system. I just removed it in git.
>
> Any specific reason you was trying to use it?
>
> Marco
>
>

Well, I needed to reach my activity directory to load a glade file.
I've seen other activities (PenguinTV, for example) use a different
approach to do this, but I was looking for what Sugar offered to do
that. Which would be the "standard" or conventional way?

PenguinTV, for example, does this:

def GetPrefix():
        h, t = os.path.split(os.path.split(os.path.abspath(sys.argv[0]))[0])
        return h

Regards.

-- 
Gonzalo Delgado.


More information about the Sugar-devel mailing list