Changeset c16819f in osmose-backend


Ignore:
Timestamp:
Mar 12, 2014 11:00:02 PM (6 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
deea036, 89a2bd8
Parents:
782c693
Message:

Use username to configure dir_work in config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/config.py

    r3ab064c rc16819f  
    2121 
    2222import os 
     23import pwd 
     24 
     25username = pwd.getpwuid(os.getuid())[0] 
    2326 
    2427# path to where osmose is installed 
     
    2629 
    2730# path to a temporary space, that doesn't need to be backup 
    28 dir_work = "/data/work/osmose" 
     31dir_work = "/data/work/%s" % (username) 
    2932 
    3033# frontend which will get results 
Note: See TracChangeset for help on using the changeset viewer.