Skip to content

Commit

Permalink
topdf: add PATH_TO_PDF_WORK
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagnus committed Nov 4, 2023
1 parent 2bab31d commit e85a2b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engine/topdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


PATH_TO_PDF = '~/Dropbox/Apps/boox/geekbook/' # '~/Sync/geekbook/'
PATH_TO_PDF_WORK = '~/Dropbox/Apps/boox/geekbook-work/' # '~/Sync/geekbook/'

import subprocess
def exe(cmd):
Expand Down Expand Up @@ -211,9 +212,9 @@ def isbright(image, dim=10, thresh=0.5):
'rna-annotation']: # mail then overwrite by openfold
if i in self.name:
try:
os.mkdir(PATH_TO_PDF + '/work/' + i )
os.mkdir(PATH_TO_PDF_WORK + '/' + i )
except:
output = PATH_TO_PDF + '/work/' + i + '/' + self.name + '.pdf' # tex#pdf '
output = PATH_TO_PDF_WORK + '/' + i + '/' + self.name + '.pdf' # tex#pdf '
if not output:
output = PATH_TO_PDF + self.name + '.pdf' # tex#pdf '

Expand Down

0 comments on commit e85a2b3

Please sign in to comment.