[Sugar-devel] Not able to make xo package of ListenSpellActivity

Tomeu Vizoso tomeu at sugarlabs.org
Mon Jun 22 03:49:12 EDT 2009


Hi Chirag,

On Mon, Jun 22, 2009 at 07:31, chirag jain<chiragjain1989 at gmail.com> wrote:
> As is mentioned in:
>
> http://wiki.laptop.org/go/Low-level_Activity_API#File_Access
>
> I changed the path of the config file from $HOME to $SUGAR_ACTIVITY_ROOT/data/
>
> But still I am not able to run it. This time the logs are:
>
> http://pastebin.be/19321
>
> Here is a code snippet:
>
> http://pastebin.be/19322

See this:

http://wiki.sugarlabs.org/go/Development_Team/Almanac/sugar.activity.activity#How_do_I_get_the_file_path_where_I_can_write_files_programmatically.3F

Also, SUGAR_ACTIVITY_ROOT is an environment variable, I recommend you
to read about it here:

http://en.wikipedia.org/wiki/Environment_variable
http://docs.python.org/library/os.html#os.environ

Regards,

Tomeu

> Thanks
>
> Chirag
>
> --
> Chirag Jain
>
> Undergraduate Student
> Netaji Subash Institute of Technology
> New Delhi
>


More information about the Sugar-devel mailing list