~screenlets-stayinalive/screenlets-stayinalive/screenlets

« back to all changes in this revision

Viewing changes to src/share/screenlets-manager/screenlets-debianizer.py

  • Committer: Guido Tabbernuk
  • Date: 2010-10-29 09:29:20 UTC
  • Revision ID: boamaod@gmail.com-20101029092920-zdvpgzj3o0fbc2hx
Debianizer to work with longer paths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
        die(_('Failed to extract screenlet name from path.'))
103
103
msg(_('Screenlet name is %s.') % sl_name)
104
104
 
 
105
sl_path = path + '/' + sl_name
 
106
 
105
107
# check for correct file inside path
106
 
if not os.path.isfile(path + '/' + sl_name + 'Screenlet.py'):
 
108
if not os.path.isfile(sl_path + 'Screenlet.py'):
107
109
        die(_('No screenlet-file "%sScreenlet.py" found in the given path.') % sl_name)
108
110
msg(_('Found %sScreenlet.py in path.') % sl_name)
109
111
 
266
268
                fail=True
267
269
                raise Exception
268
270
 
269
 
        os.system('cp -r %s /tmp/%s/screenlet' % (sl_name, deb_name) )
 
271
        os.system('cp -r %s /tmp/%s/screenlet' % (sl_path, deb_name) )
270
272
 
271
273
except:
272
274
        die(_('Failed to create file "%s" (no permissions?).') % filen)