Changeset 1121


Ignore:
Timestamp:
17.01.2016 11:41:23 (4 years ago)
Author:
klaus
Message:

try to fix root ownership of .shx during installation

File:
1 edited

Legend:

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

    r940 r1121  
    2121    checkModules() 
    2222 
     23    makeprivdir() 
     24 
     25    decompress(path) 
     26    print "SHX command line script at %s" % \ 
     27                              os.path.join(path, "SeismicHandler", "bin", "SH") 
     28 
     29def makeprivdir(): 
    2330    home = os.getenv("HOME", None) 
    2431    if home: 
     
    3542               "Please fix and restart installation!") 
    3643        quit(msg) 
    37  
    38     decompress(path) 
    39     print "SHX command line script at %s" % \ 
    40                               os.path.join(path, "SeismicHandler", "bin", "SH") 
    4144 
    4245 
     
    123126    if sys.argv[1:]: 
    124127        makerelease() 
     128        makeprivdir()   # this runs as user, better to create .shx here 
    125129    else: 
    126130        setup() 
Note: See TracChangeset for help on using the changeset viewer.