Attachments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #1058: sugar-1058.patch

File sugar-1058.patch, 1.3 KB (added by alsroot, 4 years ago)
  • pippy_app.py

    From ea7d7360edc541d2a07ddfeb528065808f3d1d5d Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Tue, 20 Oct 2009 13:14:18 +0000
    Subject: Pippy module not in correct path #1058
    
    ---
     pippy_app.py |   12 ++++++------
     1 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/pippy_app.py b/pippy_app.py
    index abaf397..bd574b4 100644
    a b  
    305305        copy2('%s/activity.py' % get_bundle_path(), 
    306306              '%s/tmp/activity.py' % self.get_activity_root()) 
    307307 
    308         self._pid = self._vte.fork_command \ 
    309                     (command="/bin/sh", 
    310                      argv=["/bin/sh", "-c", 
    311                            "python %s; sleep 1" % pippy_app_name], 
    312                      envv=["PYTHONPATH=%s/library:%s" % (get_bundle_path(), os.getenv("PYTHONPATH", ""))], 
    313                      directory=get_bundle_path()) 
     308        self._pid = self._vte.fork_command( 
     309                command='env', 
     310                argv=['env', 'PYTHONPATH=%s/library:%s' % \ 
     311                        (get_bundle_path(), os.getenv('PYTHONPATH', '')), 
     312                        'python', pippy_app_name], 
     313                directory=get_bundle_path()) 
    314314 
    315315    def stopbutton_cb(self, button): 
    316316        try: