#!/bin/env python

"""
Program to test the meta-code written by EventSelection.py.
"""

import sys
import os.path

def getQuakeMuxInfo(quake_id, dir):
    import_path = os.path.join(dir, '%d' % quake_id)
    sys.path.append(import_path)
    exec 'import urs_data_%d as ursd' % quake_id
    sys.path = sys.path[:-1]
    return ursd.getInfo(dir)

quake_id = 27198
base_dir = r'X:\Design\EventSelection'

(w, l) = getQuakeMuxInfo(quake_id, base_dir)
print 'WeightFactor=%f' % w
print 'Dirs=%s' % str(l)
