Changeset 1110


Ignore:
Timestamp:
14.01.2016 10:14:46 (4 years ago)
Author:
klaus
Message:

bugfix: missing HOME/.shx crashes SHX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/config/runtime.py

    r1071 r1110  
    178178        homeconfig = os.path.join(os.path.expanduser("~"), ".shx") 
    179179 
     180        # Need to create $HOME/.shx, otherwise the default database definition 
     181        # containing '[PRIVATE]' cannot be translated and crashes SHX. 
     182        if not os.path.exists(homeconfig): 
     183            os.mkdir( homeconfig ) 
     184 
    180185        if os.path.exists(homeconfig): 
    181186            dirs_check.append(["PRIVATE", homeconfig]) 
Note: See TracChangeset for help on using the changeset viewer.