[tracker/functional-test: 16/18] Make data-generators directory-free



commit 4b1dd137955c4bcfa9a6ad2689b10c365feb393b
Author: Ivan Frade <ivan frade nokia com>
Date:   Wed Aug 18 19:15:21 2010 +0300

    Make data-generators directory-free

 utils/data-generators/cc/convert_data.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/utils/data-generators/cc/__init__.py b/utils/data-generators/cc/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/utils/data-generators/cc/convert_data.py b/utils/data-generators/cc/convert_data.py
index e348d6d..f6a88bc 100755
--- a/utils/data-generators/cc/convert_data.py
+++ b/utils/data-generators/cc/convert_data.py
@@ -28,7 +28,7 @@ import cPickle as pickle
 import random
 import os
 
-data_dir = "source-data"
+data_dir = os.path.join (os.path.dirname (__file__), "source-data")
 simple_files_to_process = ['street-names.txt', 'street-types.txt', 'latin-words.txt',
                             'email-domains.txt', 'job-titles.txt', 'company-names.txt',
                             'company-types.txt']



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]