run batch from python scheduled via lanchd OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greeting: interesting scenario:

I have a number of batch workflows, written in python, that run as python-fu plugins.

Sample bash terminal command:

gimp -ibdf '(python-fu-batch-colorRT RUN-NONINTERACTIVE \"*.JPG\")''(gimp-quit 1)'

Opens each file and applies the plug in. Works Fine.

Also fine when run from a wrapping python script as:

command = "gimp -ibdf '(python-fu-batch-usnaps-colorRT RUN-NONINTERACTIVE \"*.JPG\")''(gimp-quit 1)'"

process = Popen([command], shell=True)

..PROVIDED that the wrapping script is run from the bash command line:

./doColorRT


Problem is, when this same python wrapping script is scheduled via launchd,(OS X launch daemon) an error is generated "sh: gimp: command not found" and gimp never runs.

I can replace the entire gimp command with a common shell command (ls, whoami, etc for example) and I get the proper response from either run method.

The wrapper script runs based on launchd's <WatchPaths> key, as new images arrive in a folder.

Anyone use this type of workflow? Help is greatly appreciated,

kindly, -hc




_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux