IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2011, 10:27:07 AM (15 years ago)
Author:
Serge CHASTEL
Message:

Localization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdor/deployment/deploy.py

    r32874 r32877  
    44Utility executable for IPP Condor deployment
    55"""
     6def hostname():
     7    """
     8    Get the host name
     9    >>> print hostname()
     10    neverland
     11    """
     12    return socket.gethostbyaddr(socket.gethostname())[0].split('.')[0]
    613
    714# Default values
     
    1017    This class contains all default values for the IPP Condor deployment
    1118    """
    12     svnSourceUrl          = 'file:///home/schastel/svnrepo/ippdor/trunk/src'
    13     targetDirectory       = '/home/schastel/local/share/python/ipp'
    14     targetBinaryDirectory = '/home/schastel/local/bin'
     19    if hostname().startswith('ipp'): # Production cluster
     20        svnSourceUrl          = 'https://svn.pan-starrs.ifa.hawaii.edu/repo/ipp/trunk/ippdor'
     21        targetDirectory       = '/home/panstarrs/ippdor/local/share/python/ipp'
     22        targetBinaryDirectory = '/home/panstarrs/ippdor/local/bin'
     23    else:
     24        svnSourceUrl          = 'file:///home/schastel/svnrepo/ippdor/trunk/src'
     25        targetDirectory       = '/home/schastel/local/share/python/ipp'
     26        targetBinaryDirectory = '/home/schastel/local/bin'
    1527
    1628    def __init__(self):
Note: See TracChangeset for help on using the changeset viewer.