Changeset eff8a79 in osmose-backend


Ignore:
Timestamp:
Oct 23, 2014 7:41:32 PM (5 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
a18674c
Parents:
595c0ab
git-author:
Jocelyn Jaubert <jocelyn.jaubert@…> (23/10/2014 19:40:55)
git-committer:
Jocelyn Jaubert <jocelyn.jaubert@…> (23/10/2014 19:41:32)
Message:

Create directory from conf.downloaddiff_path? if necessary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osmose_run.py

    r7ed7144 reff8a79  
    481481    ## check for working dirs and creates when needed 
    482482 
    483     for i in conf.dir_tmp, conf.dir_cache, conf.dir_results, conf.dir_extracts, conf.dir_diffs: 
     483    dirs = [conf.dir_tmp, conf.dir_cache, conf.dir_results, conf.dir_extracts, conf.dir_diffs] 
     484    if "diff_path" in conf.download: 
     485        dirs.append(conf.download["diff_path"]) 
     486 
     487    for i in dirs: 
    484488        if not os.path.exists(i): 
    485489            try: 
Note: See TracChangeset for help on using the changeset viewer.