Skip to content

Commit

Permalink
fix(reddit): paths are incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Dec 1, 2016
1 parent 0035759 commit 95e7434
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ npm-debug.log.*

.api.key
.settings.json
.pyc
7 changes: 5 additions & 2 deletions config/build/reddit/release.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import os
import praw
import json
import re
from settings import settings

dir_path = os.path.dirname(os.path.realpath(__file__))

CHANGELOG_LOCATION = './CHANGELOG.md'
HEADER_LOCATION = './src/reddit/header.md'
FOOTER_LOCATION = './src/reddit/footer.md'
HEADER_LOCATION = dir_path + '/header.md'
FOOTER_LOCATION = dir_path + '/footer.md'

reddit = praw.Reddit(user_agent='LegendBuilderBot by /u/%s' % (settings['REDDIT_USERNAME']))
reddit.login(settings['REDDIT_USERNAME'], settings['REDDIT_PASSWORD'], disable_warning=True)
Expand Down
4 changes: 3 additions & 1 deletion config/build/reddit/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os
import json
with open('./src/reddit/.settings.json') as settingsFile:
dir_path = os.path.dirname(os.path.realpath(__file__))
with open(dir_path + '/.settings.json') as settingsFile:
settings = json.load(settingsFile)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"sauce:open": "npm run sauce",
"sauce:close": "npm run sauce -- --close",
"s3:upload": "node config/build/s3.js",
"reddit-release": "python src/reddit/release.py",
"reddit-release": "python config/build/reddit/release.py",
"release": "npm run standard-version && npm run reddit-release",
"rimraf": "./node_modules/.bin/rimraf",
"coveralls": "./node_modules/.bin/coveralls",
Expand Down

0 comments on commit 95e7434

Please sign in to comment.