| 28 | | if platform.system() == "Darwin": |
| 29 | | # Add search paths |
| 30 | | import jahwidgets |
| 31 | | olibs = jahwidgets.get_bundle_resources_directory_path() |
| 32 | | olibs += os.path.join( "/../Frameworks" ) |
| 33 | | |
| 34 | | plugin_paths = [ olibs + "/openassetlib/plugins", |
| 35 | | olibs + "/openeffectslib/plugins", |
| 36 | | olibs + "/openimagelib/plugins", |
| 37 | | olibs + "/openmedialib/plugins", |
| 38 | | olibs + "/openobjectlib/plugins" ] |
| 39 | | |
| 40 | | openpluginlib.init( plugin_paths ) |
| 41 | | elif platform.system() == "Windows" or platform.system() == 'Microsoft': |
| 42 | | olibspath = os.path.join(os.getcwd(), "..", "openlibraries") |
| 43 | | openpluginlib.init( os.path.join( olibspath, "plugins", "release" ), |
| 44 | | os.path.join( olibspath, "kernels" ), |
| 45 | | os.path.join( olibspath, "shaders" )) |
| 46 | | else: |
| 47 | | openpluginlib.init() |
| | 28 | openpluginlib.init() |