Project

General

Profile

« Previous | Next » 

Revision 10077

bin/src_map: support custom (or no) new_term_prefix. no new_term_prefix is useful for views whose columns have already been renamed in the underlying tables and should not have * re-prepended.

View differences:

src_map
10 10
import csvs
11 11
import opts
12 12

  
13
new_term_prefix = '*'
14

  
15 13
def main():
16 14
    # Usage
17 15
    env_names = []
......
23 21
    datasrc = opts.get_env_var('datasrc', None, env_names)
24 22
    out_root = opts.get_env_var('out_root', None, env_names)
25 23
    in_root_suffix = opts.get_env_var('in_root_suffix', '', env_names)
24
    new_term_prefix = opts.get_env_var('new_term_prefix', '*', env_names)
26 25
    if datasrc == None or out_root == None: usage_err()
27 26
    
28 27
    # Get col names

Also available in: Unified diff