Browse Source

Oprava korektur pro relativní cesty.

remotes/origin/bug
Tomas Jethro Pokorny 9 years ago
parent
commit
9456807a80
  1. 4
      korektury/models.py

4
korektury/models.py

@ -78,7 +78,9 @@ class KorekturovanePDF(models.Model):
"-density","180x180",
"-geometry"," 1024x1448",
self.pdf.path+"[%d]"%self.stran,
os.path.join(settings.KOREKTURY_IMG_DIR, "%s-%d.png"%(filename,self.stran))])
os.path.join(settings.BASE_DIR, "media",
settings.KOREKTURY_IMG_DIR,
"%s-%d.png"%(filename,self.stran))])
if res==1:
break
self.stran +=1

Loading…
Cancel
Save