Remove default_type from the dbus service too

This commit is contained in:
Marco Pesenti Gritti 2006-08-09 13:05:57 +02:00
parent 7db5479c5c
commit a0c69066d4

View File

@ -27,19 +27,12 @@ def setup_activity(source, dest_path, bin):
logging.error('%s miss the required id option' % (path))
return False
if cp.has_option('Activity', 'default_type'):
default_type = cp.get('Activity', 'default_type')
else:
default_type = None
if cp.has_option('Activity', 'exec'):
activity_exec = cp.get('Activity', 'exec')
elif cp.has_option('Activity', 'python_module'):
python_module = cp.get('Activity', 'python_module')
python_module = cp.get('Activity', 'python_module')
activity_exec = '%s %s %s' % (bin, activity_id, python_module)
if default_type:
activity_exec += ' ' + default_type
else:
logging.error('%s must specifiy exec or python_module' % (source))
return False