[Bio] / FigKernelPackages / FIG.py Repository:
ViewVC logotype

Diff of /FigKernelPackages/FIG.py

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

revision 1.6, Mon Mar 15 23:14:11 2004 UTC revision 1.7, Fri Mar 26 21:38:38 2004 UTC
# Line 7  Line 7 
7    
8  def get_local_hostname():  def get_local_hostname():
9      #      #
10        # See if there is a FIGdisk/config/hostname file. If there
11        # is, force the hostname to be that.
12        #
13    
14        try:
15            fh = open(os.path.join(FIG_Config.fig_disk, "config", "hostname"))
16            host = fh.readline()
17            return host.strip()
18        except:
19            pass
20    
21        #
22      # First check to see if we our hostname is correct.      # First check to see if we our hostname is correct.
23      #      #
24      # Map it to an IP address, and try to bind to that ip.      # Map it to an IP address, and try to bind to that ip.

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3