-
Notifications
You must be signed in to change notification settings - Fork 0
/
vars.txt
21 lines (19 loc) · 1002 Bytes
/
vars.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
############################
## SCRIPT ARGUMENTS ##
############################
AUTHOR='Alana Tran' # Creator(s) of document's contents.
TITLE='Assimilation' # Name of document.
DESCRIPTION='Life Goes On' # Description of document.
WIDTH=9 # Width of page.
HEIGHT=7 # Height of page.
MARGINS=(0,0,0,0) # Page Margins of document. (left, right, top, bottom)
BIND=.15 # Gap for where document is physically bound.
### NOTE: Script assumes all images are the same filetype. ###
TARGET=os.path.abspath('_target_')+os.sep # Location of Scribus (.sla) file.
SOURCE=os.path.abspath(TARGET+'/art')+os.sep # Location of image files.
FILETYPE='.png' # Filetype of images in SOURCE.
PAGECOUNT=len(os.listdir(SOURCE)) # Number of images in SOURCE.
FIRSTPAGE=1 # Starting number of images in source.
IMAGES=dict(zip(range(FIRSTPAGE, FIRSTPAGE+PAGECOUNT), os.listdir(SOURCE)))
### Add or remove variables here as needed. ###
FILENAME=TARGET+DESCRIPTION.replace(' ', '')+'.sla' # Name of Scribus .sla file.