A partir de ce fil stackoverflow https://stackoverflow.com/questions/4443...mmand-line, j'ai extrait cette ligne de commande:Comment puis-je lancer la ligne de commande GIMP à partir d'un script Python?
gimp-console -idf --batch-interpreter python-fu-eval -b "import sys;sys.path=['.']+sys.path;import batch;batch.run('./images')" -b "pdb.gimp_quit(1)"
Il fonctionne parfaitement bien.
Maintenant, je voudrais exécuter cette commande à partir d'un script Python, généralement j'utilise subprocess.Popen
, mais cette fois-ci ne fonctionne pas et je reçois ce message:
"batch command experienced an execution error"
Comment puis-je lancer la ligne de commande GIMP à partir d'un script Python?
Montrez * comment * vous avez essayé d'utiliser 'subprocess.Popen'. –