Changeset 808 for SHX/trunk


Ignore:
Timestamp:
11/01/12 11:50:53 (8 years ago)
Author:
marcus
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/bin/setup.py

    r807 r808  
     1import os.path 
    12#! /usr/bin/env python 
    23# -*- coding: utf-8 -*- 
     
    2728        try: 
    2829            _p = os.path.join(home, ".shx") 
    29             os.mkdir(_p) 
    30             print "Created private SHX directory: %s" % _p 
     30            if not os.path.exists(_p): 
     31                os.mkdir(_p) 
     32                print "Created private SHX directory: %s" % _p 
    3133        except: 
    3234            msg = "Error creating private directory: %s/.shx" % home 
Note: See TracChangeset for help on using the changeset viewer.