Commit Graph

6 Commits

Author SHA1 Message Date
Michael Stone
0a9676171d Improve ActivityFactory utility functions and reduce code-path duplication.
* Remove a race in open_log_file()

  * Make open_log_file return a path as well as a file-object so that
    Rainbow-launched activities can log to the same path that sugar-launched
    ones do.

  * Change the call to Rainbow so that it writes to the log-file provided by
    open_log_file()

  * Define SUGAR_BUNDLE_ID env variable and change the location of the check
    for /etc/olpc-security so that Rainbow doesn't have to search for or parse
    the activity bundle.

  * Remove import statements marked as unnecessary by pylint.

  * Fix up some whitespace issues.
2007-11-05 17:40:05 -05:00
Marco Pesenti Gritti
9e4b78766b Make activity space creation a bit more solid 2007-11-05 21:54:02 +01:00
Marco Pesenti Gritti
5732433d3e Setup the activity root with a tmp and a data dir.
Save DS files in data (since tmp will be on tmpfs in rainbow)
2007-10-30 23:38:48 +01:00
Marco Pesenti Gritti
0e0ebf5701 Set SUGAR_ACTIVITY_ROOT 2007-10-30 15:03:27 +01:00
Marco Pesenti Gritti
880f1c637d Parse arguments rather than forking out a shell 2007-10-23 18:22:59 +02:00
Marco Pesenti Gritti
6240c1cf6f Cleanup the source structure 2007-10-16 11:04:59 +02:00