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