/[ascend]/trunk/ascend-config.in
ViewVC logotype

Diff of /trunk/ascend-config.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2082 by jpye, Wed Feb 25 07:52:42 2009 UTC revision 2083 by jpye, Thu Sep 24 06:37:53 2009 UTC
# Line 1  Line 1 
1  #!@PYTHON@  #!@PYTHON@
2  from optparse import OptionParser  from optparse import OptionParser
3  import sys, platform  import sys, platform, os
4    
5  #---------------------  #---------------------
6  # This file is generated automatically by SCons and installed in at INSTALL_BIN.  # This file is generated automatically by SCons and installed in at INSTALL_BIN.
# Line 21  import sys, platform Line 21  import sys, platform
21  # Type ascend-config --help for usage.  # Type ascend-config --help for usage.
22  #---------------------  #---------------------
23    
24    def path_absolute(p):
25        """Mac-specific routine for making absolute paths based on location of this
26        Python script, which will have been embedded in the ASCEND.app/Contents
27        dir."""
28        if os.path.isabs(p):
29            return p
30        else:
31            return os.path.join(sys.path[0],p)
32    
33  # platform specific name munging for '-L' and '-I' file paths...  # platform specific name munging for '-L' and '-I' file paths...
34  munge = lambda s: s  munge = lambda s: s
35    
# Line 57  if platform.system()=="Windows": Line 66  if platform.system()=="Windows":
66          munge = munge1          munge = munge1
67      except:      except:
68          pass          pass
69    
70    elif platform.system()=="Darwin":
71        LIB = path_absolute("")
72        BIN = path_absolute("")
73        INCLUDE = path_absolute("Headers")
74        ASCDATA = path_absolute("Resources")
75        MODELS = path_absolute("""@ASC_LIBRARY_REL_DIST@""")
76        SOLVERS = path_absolute("""@ASC_SOLVERS_REL_DIST@""")
77    
78  else:  else:
79      # If we're not in Windows, use the original values passed to us from SCons:      # For Linux and whatever else, use the original values passed to us from SCons:
80      LIB="@INSTALL_LIB@"      LIB="@INSTALL_LIB@"
81      BIN="@INSTALL_BIN@"      BIN="@INSTALL_BIN@"
82      INCLUDE="@INSTALL_INCLUDE@"      INCLUDE="@INSTALL_INCLUDE@"

Legend:
Removed from v.2082  
changed lines
  Added in v.2083

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22