Skip to content

Commit

Permalink
fixed issue where settings.yaml cannot be detected
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimivantang committed Aug 29, 2016
1 parent 489fb52 commit 996e2f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ltadatamallcrawler/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)


with open('settings.yaml', 'r') as stream:
with open(os.path.dirname(__file__) + '/' + 'settings.yaml', 'r') as stream:
try:
settings = yaml.load(stream)
except yaml.YAMLError as e:
Expand Down
1 change: 1 addition & 0 deletions requirements-in.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
requests
pyyaml
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
requests
pyyaml
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@
author_email='hiimivantang@gmail.com',
url='https://github.com/hiimivantang/ltadatamallcrawler',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
#package_data={
# 'ltadatamallcrawler':['urls.csv','settings.yaml']
#},
entry_points={
'console_scripts':[
'ltadatamallcrawler=ltadatamallcrawler.cli:cli',
'lta-datamall-crawler=ltadatamallcrawler.requestor:main',
],
},
include_package_data=True,
Expand Down

0 comments on commit 996e2f9

Please sign in to comment.