A web scraper build to search specific information for a given compound (and its pseudonyms)

The cool folder seperators!

+2 -2
+2 -2
utils/configurator.py
··· 1 1 import ConfigParser 2 + import os 2 3 3 4 from scrapy.utils.project import get_project_settings 4 - import os 5 5 6 6 class Configurator: 7 7 """ ··· 67 67 :return a ConfigParser object of sources.cfg 68 68 """ 69 69 current_dir = os.path.dirname(os.path.abspath(__file__)) 70 - config_path = current_dir + '\..\sources.cfg' 70 + config_path = current_dir + '/../sources.cfg' 71 71 # [TODO]: location of sources.cfg should be softcoded eventually 72 72 config = ConfigParser.ConfigParser() 73 73 config.read(config_path)