import os
import json
import csv
import sys
from config import EvalConfig
from evaluator import eval_wrap

if __name__ == '__main__':
    appname  = 'httpd'
    parpath  = '/home/tianyin/cox/dataset/httpd/parameters'
    poppath  = '/home/tianyin/cox/benchmarks/data/apache_popularity.csv' 
    p2mmaps  = '/home/tianyin/cox/benchmarks/data/apache_modules.csv'
    testcase = '/home/tianyin/cox/benchmarks/data/apache_tc_icon.csv' 
    base_dir = '/home/tianyin/cox/benchmarks/data/' + appname
    config = EvalConfig(appname, parpath, poppath, p2mmaps, None, testcase, base_dir)
    eval_wrap(config)

    appname  = 'hadoop'
    parpath  = '/home/tianyin/cox/dataset/hadoop/parameters'
    poppath  = '/home/tianyin/cox/benchmarks/data/hadoop_popularity.csv' 
    p2mmaps  = None
    rnmmaps  = '/home/tianyin/cox/benchmarks/data/hadoop_rename.txt'
    testcase = '/home/tianyin/cox/benchmarks/data/hadoop_tc_icon.csv' 
    base_dir = '/home/tianyin/cox/benchmarks/data/' + appname
    config = EvalConfig(appname, parpath, poppath, p2mmaps, rnmmaps, testcase, base_dir)
    #eval_wrap(config)

    appname  = 'mysql'
    parpath  = '/home/tianyin/cox/dataset/mysql/parameters'
    poppath  = '/home/tianyin/cox/benchmarks/data/mysql_popularity.csv' 
    p2mmaps  = None
    testcase = '/home/tianyin/cox/benchmarks/data/mysql_tc_icon.csv' 
    base_dir = '/home/tianyin/cox/benchmarks/data/' + appname
    config = EvalConfig(appname, parpath, poppath, p2mmaps, None, testcase, base_dir)
    #eval_wrap(config)


@@ -166,33 +166,18 @@
 ath  = '
-/home/tianyin/cox
+..
 /dataset
@@ -211,33 +211,18 @@
 ath  = '
-/home/tianyin/cox
+..
 /benchma
@@ -270,33 +270,18 @@
 aps  = '
-/home/tianyin/cox
+..
 /benchma
@@ -325,33 +325,18 @@
 case = '
-/home/tianyin/cox
+..
 /benchma
@@ -381,33 +381,18 @@
 _dir = '
-/home/tianyin/cox
+..
 /benchma
@@ -561,33 +561,18 @@
 ath  = '
-/home/tianyin/cox
+..
 /dataset
@@ -607,33 +607,18 @@
 ath  = '
-/home/tianyin/cox
+..
 /benchma
@@ -686,33 +686,18 @@
 aps  = '
-/home/tianyin/cox
+..
 /benchma
@@ -740,33 +740,18 @@
 case = '
-/home/tianyin/cox
+..
 /benchma
@@ -796,33 +796,18 @@
 _dir = '
-/home/tianyin/cox
+..
 /benchma
@@ -979,33 +979,18 @@
 ath  = '
-/home/tianyin/cox
+..
 /dataset
@@ -1024,33 +1024,18 @@
 ath  = '
-/home/tianyin/cox
+..
 /benchma
@@ -1102,33 +1102,18 @@
 case = '
-/home/tianyin/cox
+..
 /benchma
@@ -1161,25 +1161,10 @@
  = '
-/home/tianyin/cox
+..
 /ben

use relative paths