Don't try/catch.

This commit is contained in:
Gonzalo Exequiel Pedone 2021-02-22 21:36:42 -03:00
parent 9fdad39b5d
commit 2d058c9534
No known key found for this signature in database
GPG key ID: B8B09E63E9B85BAF

View file

@ -19,20 +19,22 @@
#
# Web-Site: http://webcamoid.github.io/
import os
from WebcamoidDeployTools import DTUtils
if __name__ =='__main__':
system = DTUtils.Utils().system
scriptDir = os.path.dirname(os.path.realpath(__file__))
while True:
deploy = __import__('deploy_' + system).Deploy()
#try:
#deploy = __import__('deploy_' + system).Deploy()
#except Exception as e:
#print('No valid deploy script found: ', e)
scriptPath = os.path.join(scriptDir, 'deploy_{}.py'.format(system))
#exit()
if not os.path.exists(scriptPath):
print('No valid deploy script found')
exit()
deploy = __import__('deploy_' + system).Deploy()
if system == deploy.targetSystem:
deploy.run()