[Jahshaka-cvs] jah/jahtools/jbatch jbatch.py, 1.8, 1.9 jbatch_tk.py, 1.13, 1.14
Status: Beta
Brought to you by:
jahshaka
From: John B. <ok_...@us...> - 2007-04-26 08:58:11
|
Update of /cvsroot/jahshaka/jah/jahtools/jbatch In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv23999/jahtools/jbatch Modified Files: jbatch.py jbatch_tk.py Log Message: Fixing up jbatch to run on OS X Index: jbatch.py =================================================================== RCS file: /cvsroot/jahshaka/jah/jahtools/jbatch/jbatch.py,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- jbatch.py 16 Mar 2007 08:16:36 -0000 1.8 +++ jbatch.py 26 Apr 2007 08:58:07 -0000 1.9 @@ -7,6 +7,11 @@ import openmedialib import jstack import keygrab +import platform + +if platform.system() == "Darwin": + from AppKit import * + import objc def usage( ): print """ @@ -47,6 +52,10 @@ """ def main( ): + # Initialise AppKit: necessary for the sdl plugin + if platform.system() == "Darwin": + NSApplicationLoad() + ops = [ ] key_grab = True Index: jbatch_tk.py =================================================================== RCS file: /cvsroot/jahshaka/jah/jahtools/jbatch/jbatch_tk.py,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- jbatch_tk.py 24 Apr 2007 20:07:58 -0000 1.13 +++ jbatch_tk.py 26 Apr 2007 08:58:08 -0000 1.14 @@ -16,6 +16,11 @@ import threading import urlparse import urllib +import platform + +if platform.system() == "Darwin": + from AppKit import * + import objc def usage( ): print "jbatch_tk [ <media> ]*" @@ -411,6 +416,10 @@ self.visualise.properties( ).get_property( "force" ).set( self.visualise_force ) def main( ): + # Initialise AppKit: necessary for the sdl plugin + if platform.system() == "Darwin": + NSApplicationLoad() + ops = [ ] for i in sys.argv[ 1: ]: |