|
@@ -1,4 +1,4 @@
|
|
|
-#!/usr/bin/env python3
|
|
|
+#!/usr/bin/python3
|
|
|
from PIL import Image
|
|
|
from PIL import ImageFont
|
|
|
from PIL import ImageDraw
|
|
@@ -175,7 +175,12 @@ def readConfig(profile=False,platform=False):
|
|
|
if platform:
|
|
|
token = checkLocal(config[profile][platform]["token"])
|
|
|
filename = checkLocal(config[profile][platform]["filename"])
|
|
|
- return {"saveLocation":saveLocation,"imagesLocation":imagesLocation,"csvLocation":csvLocation,"font":font,"token":token,"filename":filename,"xSize":xSize,"ySize":ySize,"panelLength":panelLength,"csvTree":csvTree,"csvSpeech":csvSpeech,"csvSubs":csvSubs,"csvObj":csvObj}
|
|
|
+ try:
|
|
|
+ text = config[profile][platform]["text"]
|
|
|
+ except KeyError:
|
|
|
+ postText = False
|
|
|
+
|
|
|
+ return {"saveLocation":saveLocation,"imagesLocation":imagesLocation,"csvLocation":csvLocation,"font":font,"token":token,"filename":filename,"xSize":xSize,"ySize":ySize,"panelLength":panelLength,"csvTree":csvTree,"csvSpeech":csvSpeech,"csvSubs":csvSubs,"csvObj":csvObj,"text":text}
|
|
|
filename = config[profile]["filename"]
|
|
|
return {"saveLocation":saveLocation,"imagesLocation":imagesLocation,"csvLocation":csvLocation,"font":font,"filename":filename,"xSize":xSize,"ySize":ySize,"panelLength":panelLength,"csvTree":csvTree,"csvSpeech":csvSpeech,"csvSubs":csvSubs,"csvObj":csvObj}
|
|
|
|