/[escript]/trunk/scons/esys_options.py
ViewVC logotype

Diff of /trunk/scons/esys_options.py

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

revision 618 by gross, Thu Mar 9 23:03:38 2006 UTC revision 619 by gross, Wed Mar 22 04:49:24 2006 UTC
# Line 96  except ImportError: Line 96  except ImportError:
96  # try to import <hostname>_options  # try to import <hostname>_options
97  if usegcc==0:  if usegcc==0:
98     import socket     import socket
99     hostname = socket.gethostname().split('.')[0]     from string import ascii_letters,digits
100       hostname=""
101       for s in socket.gethostname().split('.')[0]:
102            if s in ascii_letters+digits:
103               hostname+=s
104            else:
105               hostname+="_"
106     try:     try:
107        exec "from "+hostname+"_options import *"        exec "from "+hostname+"_options import *"
108     except ImportError:     except ImportError:

Legend:
Removed from v.618  
changed lines
  Added in v.619

  ViewVC Help
Powered by ViewVC 1.1.26