diff --git a/db/db_config.py b/db/db_config.py index 8c47fa818390b642691a31a6b04f7d75f5857f47..5bad7b043ed229ff5ecb5f874ef094e994641f90 100644 --- a/db/db_config.py +++ b/db/db_config.py @@ -3,6 +3,6 @@ import sqlite3 def get_db(): - conn = sqlite3.connect('/Users/tom/PycharmProjects/cognistance/db/datasets.db') + conn = sqlite3.connect('db/datasets.db') cursor = conn.cursor() return conn, cursor \ No newline at end of file diff --git a/func/usas/usas.py b/func/usas/usas.py index 1bbeac6bc57896fe846efc5998c03897f078b995..083b3217bb6b5a21e6c3470ec49b26061e19c225 100644 --- a/func/usas/usas.py +++ b/func/usas/usas.py @@ -10,7 +10,7 @@ def run_usas_on_text(page): print('usasoverall page old: ', page) datasetid = page.split('><p>')[0].replace('<div id=', '').replace('"', '').strip() d = {} - with open('/Users/tom/PycharmProjects/cognistance/func/usas/usas_overall.txt') as f: + with open('func/usas/usas_overall.txt') as f: for line in f: lineL = line.replace('\n', '').split(' ', 1) key = lineL[0].strip() diff --git a/func/usasFine/usasFine.py b/func/usasFine/usasFine.py index 584f1631269a46476b27e14d8fc29cdb63e5ec51..20815f57bfed6b7908c7bd506978a4daedd3c1ab 100644 --- a/func/usasFine/usasFine.py +++ b/func/usasFine/usasFine.py @@ -11,7 +11,7 @@ def run_usasFine_on_text(page): usastag = page.split('__')[0] datasetid = page.split('__')[1].split('><p>')[0].replace('<div id=', '').replace('"', '').strip() d = {} - with open('/Users/tom/PycharmProjects/cognistance/func/usas/usas_desc.txt') as f: + with open('func/usas/usas_desc.txt') as f: for line in f: lineL = line.replace('\n', '').split(' ', 1) key = lineL[0].strip()