Mercurial > repos > siyuan > prada
comparison pyPRADA_1.2/prada-fusion @ 3:f17965495ec9 draft default tip
Uploaded
author | siyuan |
---|---|
date | Tue, 11 Mar 2014 12:14:01 -0400 |
parents | acc2ca1a3ba4 |
children |
comparison
equal
deleted
inserted
replaced
2:74f6c4fcab2f | 3:f17965495ec9 |
---|---|
100 #by default, search conf.txt in the prada folder | 100 #by default, search conf.txt in the prada folder |
101 prada_path=os.path.dirname(os.path.abspath(__file__)) #path to find libraries and executives. | 101 prada_path=os.path.dirname(os.path.abspath(__file__)) #path to find libraries and executives. |
102 ref_search_path=[prada_path,os.getcwd()] #search path for conf file if not specified in command line | 102 ref_search_path=[prada_path,os.getcwd()] #search path for conf file if not specified in command line |
103 | 103 |
104 if '-conf' in args: | 104 if '-conf' in args: |
105 i=args.index('-ref') | 105 i=args.index('-conf') |
106 reffile=args[i+1] | 106 reffile=args[i+1] |
107 if os.path.exists(reffile): | 107 if os.path.exists(reffile): |
108 pass | 108 pass |
109 else: | 109 else: |
110 for pth in ref_search_path: | 110 for pth in ref_search_path: |