Changeset 926

Show
Ignore:
Timestamp:
12/09/07 11:40:11 (1 year ago)
Author:
glslang
Message:

+ boostrap from ObjC on OS/X

Location:
trunk/jahtools/encoder
Files:
13 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jahtools/encoder/bootstrap.py

    r907 r926  
    77import os.path 
    88 
    9 # This is required for the executable generated from py2exe 
    10 # to use the preinstalled openlibraries python bindings 
    11 if platform.system() == "Windows" or platform.system() == 'Microsoft': 
    12         #sys.path.append(os.path.join(os.getcwd(), "..", "openlibraries", "python")) 
    13         #sys.path.append(os.environ['PYTHONPATH']) 
    14         pass 
    15  
    169# Initialise the dynamic linking functionality - note that the ubuntu amd64 
    1710# distro lacks the dl module, hence fallback to the non-symbolic values 
    18 elif platform.system( ) == "Linux": 
     11if platform.system( ) == "Linux": 
    1912        try: 
    2013                import dl 
     
    2518# Initialise openpluginlib 
    2619import openpluginlib 
     20import jahwidgets 
    2721 
    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() 
     22openpluginlib.init()