tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 940a3805959d868268835efd8143316b59c044a7
parent dba424bb9a580922b37f5419f1ba86e18be9f073
Author: rob <rob@tarina.org>
Date:   Mon, 27 Mar 2023 13:51:40 +0100

folder fix

Diffstat:
Mtarina.py | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -854,8 +854,11 @@ def main(): camera.awb_gains = (round(camera.awb_gains[0],2), round(camera.awb_gains[1],2) + 0.02) elif menu[selected] == 'SRV:': if serverstate == 'on': - os.makedirs(tarinafolder+'/srv/sessions') - os.system('chown www-data '+tarinafolder+'/srv/sessions') + try: + os.makedirs(tarinafolder+'/srv/sessions') + os.system('chown www-data '+tarinafolder+'/srv/sessions') + except: + print('srv folder exist') serverstate = 'false' serverstate = tarinaserver(False) elif serverstate == 'off': @@ -992,8 +995,11 @@ def main(): camera.awb_gains = (round(camera.awb_gains[0],2), round(camera.awb_gains[1],2) - 0.02) elif menu[selected] == 'SRV:': if serverstate == 'on': - os.makedirs(tarinafolder+'/srv/sessions') - os.system('chown www-data '+tarinafolder+'/srv/sessions') + try: + os.makedirs(tarinafolder+'/srv/sessions') + os.system('chown www-data '+tarinafolder+'/srv/sessions') + except: + print('srv folder exist') serverstate = tarinaserver(False) elif serverstate == 'off': serverstate = tarinaserver(True)