[Jahshaka-cvs] jah/jahtools/jbatch bootstrap.py, 1.1, 1.2 jbatch.py, 1.1, 1.2
Status: Beta
Brought to you by:
jahshaka
From: John B. <ok_...@us...> - 2007-01-11 11:57:19
|
Update of /cvsroot/jahshaka/jah/jahtools/jbatch In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv15472/jahtools/jbatch Modified Files: bootstrap.py jbatch.py Log Message: Adding Darwin plugin paths to bootstrap Index: jbatch.py =================================================================== RCS file: /cvsroot/jahshaka/jah/jahtools/jbatch/jbatch.py,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- jbatch.py 10 Jan 2007 11:27:38 -0000 1.1 +++ jbatch.py 11 Jan 2007 11:57:15 -0000 1.2 @@ -7,7 +7,7 @@ import openmedialib import jstack -openpluginlib.init( "" ) +openpluginlib.init() if len( sys.argv ) > 1: sys.argv.pop( 0 ) Index: bootstrap.py =================================================================== RCS file: /cvsroot/jahshaka/jah/jahtools/jbatch/bootstrap.py,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bootstrap.py 10 Jan 2007 11:27:38 -0000 1.1 +++ bootstrap.py 11 Jan 2007 11:57:15 -0000 1.2 @@ -6,13 +6,35 @@ import sys import os.path +# This is required for the executable generated from py2exe +# to use the preinstalled openlibraries python bindings +if platform.system() == "win32": + sys.path.append(os.environ['PYTHONPATH']) + # Initialise the dynamic linking functionality - note that the ubuntu amd64 # distro lacks the dl module, hence fallback to the non-symbolic values - -if platform.system( ) == "Linux": +elif platform.system( ) == "Linux": try: import dl sys.setdlopenflags( dl.RTLD_NOW | dl.RTLD_GLOBAL ) except: sys.setdlopenflags( 257 ) +# Initialise openpluginlib +import openpluginlib + +if platform.system() == "Darwin": + # Add search paths + import jahwidgets + olibs = jahwidgets.get_bundle_resources_directory_path() + olibs += os.path.join( "/../Frameworks/openlibraries-0.4.0" ) + + plugin_paths = [ olibs + "/openassetlib/plugins", + olibs + "/openeffectslib/plugins", + olibs + "/openimagelib/plugins", + olibs + "/openmedialib/plugins", + olibs + "/openobjectlib/plugins" ] + + openpluginlib.init( plugin_paths ) +else: + openpluginlib.init() |