I don't know if anyone here is familiar with the Scala digital signage programs but hopefully this question can be answered without any knowledge of it, just in case...
I am working with a Python script that checks a csv file and shares some of the info with a scala script. However, I am now adding some things to the script so I need it to run an additional python script should the appropriate 'if' branch be run.
if (roomname.lower() == svars.banquet_room.lower()) and \ is_current(evtdate, timeon, timeoff): svars.display_evt = True svars.evtdate = evtdate svars.banquet_room = roomname.title() svars.evtname1 = evtname1 svars.evtname2 = evtname2 svars.evtname3 = evtname3 svars.evttime = evttime svars.bkgrd00 = bkgrd00 svars.bkgrd0 = bkgrd0 svars.bkgrd1 = bkgrd1 svars.bkgrd2 = bkgrd2 svars.bkgrd3 = bkgrd3 svars.bkgrd4 = bkgrd4 svars.flash0 = flash0 svars.flash1 = flash1 svars.flash2 = flash2 svars.flash3 = flash3 svars.flash4 = flash4 os.system('python time_keeper.py') # figure out font sizes for all three evtnames for j in [1,2,3]: evtname = getattr(svars, 'evtname%s' % j) fontsize = 'fontsize%s' % j if len(evtname) <= svars.short_len: setattr(svars, fontsize, svars.largefont) elif len(evtname) >= svars.long_len: setattr(svars, fontsize, svars.smallfont) break # once found else: svars.display_evt = False
That is the section of code dealing with running the additional script. Line 21 is how to go about running the script from what I've gathered other places online but it does not seem to work properly. Am I doing something wrong or is this problem located elsewhere?
Edited 5 Years Ago by rhuffman8: n/a