The cool folder seperators!
This commit is contained in:
parent
2cefcfdb13
commit
1fb8450367
@ -1,7 +1,7 @@
|
||||
import ConfigParser
|
||||
import os
|
||||
|
||||
from scrapy.utils.project import get_project_settings
|
||||
import os
|
||||
|
||||
class Configurator:
|
||||
"""
|
||||
@ -67,7 +67,7 @@ class Configurator:
|
||||
:return a ConfigParser object of sources.cfg
|
||||
"""
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
config_path = current_dir + '\..\sources.cfg'
|
||||
config_path = current_dir + '/../sources.cfg'
|
||||
# [TODO]: location of sources.cfg should be softcoded eventually
|
||||
config = ConfigParser.ConfigParser()
|
||||
config.read(config_path)
|
||||
|
Reference in New Issue
Block a user