Changeset 23754


Ignore:
Timestamp:
02/26/19 08:02:26 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing indentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/dev/devpath.py

    r23718 r23754  
    88JPL_SVN  = os.getenv('JPL_SVN')
    99if(ISSM_DIR==None):
    10         raise NameError('"ISSM_DIR" environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!')
     10    raise NameError('"ISSM_DIR" environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!')
    1111
    1212#Go through src/m and append any directory that contains a *.py file to PATH
    1313for root,dirs,files in os.walk(ISSM_DIR+ '/src/m'):
    14         if '.svn' in dirs:
    15                 dirs.remove('.svn')
    16         for file in files:
    17                 if file.find(".py") != -1:
    18                         if file.find(".pyc") == -1:
    19                                 if root not in sys.path:
    20                                         sys.path.append(root)
     14    if '.svn' in dirs:
     15        dirs.remove('.svn')
     16        for file in files:
     17            if file.find(".py") != -1:
     18                if file.find(".pyc") == -1:
     19                    if root not in sys.path:
     20                        sys.path.append(root)
    2121
    2222#Also add the Nightly run directory
     
    2727# If using clusters, we need to have the path to the cluster settings directory
    2828if(JPL_SVN!=None):
    29         if os.path.exists(JPL_SVN + '/usr/' + USERNAME):
    30                 sys.path.append(JPL_SVN + '/usr/' + USERNAME)
    31         else:
    32                 warnings.warn('cluster settings should be in, '+ JPL_SVN +'/usr/' + USERNAME)
     29    if os.path.exists(JPL_SVN + '/usr/' + USERNAME):
     30        sys.path.append(JPL_SVN + '/usr/' + USERNAME)
     31    else:
     32        warnings.warn('cluster settings should be in, '+ JPL_SVN +'/usr/' + USERNAME)
    3333
    3434#Manual imports for commonly used functions
Note: See TracChangeset for help on using the changeset viewer.