~ubuntu-branches/ubuntu/wily/docky/wily-proposed

« back to all changes in this revision

Viewing changes to scripts/open_terminal_here.py

  • Committer: Bazaar Package Importer
  • Author(s): Rico Tzschichholz
  • Date: 2011-02-11 12:57:08 UTC
  • mfrom: (10.1.5 experimental)
  • Revision ID: james.westby@ubuntu.com-20110211125708-ka88sz8ac9px1fcy
Tags: 2.0.11-2
Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
        def menu_pressed(self, menu_id):
51
51
                if self.id_map[menu_id] == "Open Terminal Here":
52
 
                        os.chdir(self.path);
 
52
                        oldDir = os.getcwd()
 
53
                        os.chdir(self.path)
53
54
                        os.system ('%s &' % self.terminal)
 
55
                        os.chdir(oldDir)
54
56
                
55
57
        def add_menu_item(self, name, icon):
56
58
                menu_id = self.iface.AddMenuItem(name, icon, "actions")