diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-08-13 11:18:43 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-08-13 11:18:43 +0100 |
| commit | 597a41e66da5ebede576b19feb279ace504e4d4c (patch) | |
| tree | a86ae9b296786885513c36cc32563ea6f382ac88 /arxiv2remarkable.py | |
| parent | Update readme (diff) | |
| download | paper2remarkable-597a41e66da5ebede576b19feb279ace504e4d4c.tar.gz paper2remarkable-597a41e66da5ebede576b19feb279ace504e4d4c.zip | |
Bugfix for directory creation
Diffstat (limited to 'arxiv2remarkable.py')
| -rwxr-xr-x | arxiv2remarkable.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arxiv2remarkable.py b/arxiv2remarkable.py index 80048ea..8be885b 100755 --- a/arxiv2remarkable.py +++ b/arxiv2remarkable.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -__version__ = "0.3.0" +__version__ = "0.3.1" __author__ = "G.J.J. van den Burg" """ @@ -157,7 +157,7 @@ class Provider(metaclass=abc.ABCMeta): if not self.center: return filepath - self.log("Centering PDF file") + self.log("Centering pdf file") centered_file = os.path.splitext(filepath)[0] + "-center.pdf" cropper = Cropper( filepath, centered_file, pdfcrop_path=self.pdfcrop_path @@ -232,7 +232,7 @@ class Provider(metaclass=abc.ABCMeta): self.log("Starting upload to reMarkable") if remarkable_dir: status = subprocess.call( - [self.rmapi_path, "mkdir", remarkable_dir], + [self.rmapi_path, "mkdir", remarkable_dir + "/"], stdout=subprocess.DEVNULL, ) if not status == 0: |
