send command as string

This commit is contained in:
Matthias 2021-11-18 16:38:31 +01:00
parent e5d0380356
commit 8cab974893
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -103,7 +103,7 @@ class PluginConfigInstallSerializer(serializers.Serializer):
# use pypi # use pypi
command.append(packagename) command.append(packagename)
ret = {'command': command} ret = {'command': ' '.join(command)}
# execute pypi # execute pypi
try: try:
result = subprocess.check_output(command, cwd=os.path.dirname(settings.BASE_DIR)) result = subprocess.check_output(command, cwd=os.path.dirname(settings.BASE_DIR))