polar: allow properly specifying polar_dir, with ~ as a default

This commit is contained in:
Dima Gerasimov 2020-05-15 08:14:06 +01:00
parent 8f86d7706b
commit f3d5064ff2
4 changed files with 55 additions and 12 deletions

View file

@ -33,6 +33,7 @@ modules = [
('twint' , 'my.twitter.twint' ),
('twitter', 'my.twitter.archive' ),
('lastfm' , 'my.lastfm' ),
('polar' , 'my.reading.polar' ),
]
def indent(s, spaces=4):
@ -117,4 +118,15 @@ for cls, p in modules:
"""
export_path: Paths
#+end_src
- [[file:../my/reading/polar.py][my.reading.polar]]
[[https://github.com/burtonator/polar-books][Polar]] articles and highlights
#+begin_src python
class polar:
'''
Polar config is optional, you only need it if you want to specify custom 'polar_dir'
'''
polar_dir: Path = Path('~/.polar').expanduser()
#+end_src
:end: