Skip to content

Commit

Permalink
build absolute path from script directory (to run script from any dir…
Browse files Browse the repository at this point in the history
…ectory (cron-job,...))
  • Loading branch information
Barabazs committed Jul 20, 2020
1 parent f00c7cd commit 23cb145
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion feedly2instapaper/feedly2instapaper.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import sys
from pathlib import Path

import instapaper
import yaml
from feedly.api_client.session import FeedlySession
from feedly.api_client.stream import StreamOptions

with open('settings.yaml') as f:
path = Path(__file__).parent / './settings.yaml'
with path.open() as f:
config = yaml.load(f, Loader=yaml.FullLoader)


Expand Down

0 comments on commit 23cb145

Please sign in to comment.