fi
if [ -f $plugins/$dir/requirements.txt ]; then
- echo $dir
+ cd $plugins/$dir
pip install -r $plugins/$dir/requirements.txt
- fi
-
- if [ -f $plugins/$dir/setup.py ]; then
- echo $dir
+ elif [ -f $plugins/$dir/setup.py ]; then
pip install -e $plugins/$dir/.
fi
done
help='define the telemeta collection code')
def create_selection(self):
+ if not self.selection_title and self.collection_code:
+ self.selection_title = self.collection_code
+
if self.collection_code:
selection_title = self.collection_code
collection = MediaCollection.objects.get(code=self.collection_code)
except Preset.MultipleObjectsReturned:
print(Preset.objects.filter(processor=processor, parameters='{}'))
- self.experience, c = Experience.objects.get_or_create(title=self.experience_title)
+ if self.experience_title:
+ self.experience, c = Experience.objects.get_or_create(title=self.experience_title)
+ else:
+ self.experience = Experience()
+ self.experience.save()
for preset in presets:
if not preset in self.experience.presets.all():
self.experience.presets.add(preset)