Don't try/catch.
This commit is contained in:
parent
9fdad39b5d
commit
2d058c9534
1 changed files with 8 additions and 6 deletions
|
@ -19,20 +19,22 @@
|
||||||
#
|
#
|
||||||
# Web-Site: http://webcamoid.github.io/
|
# Web-Site: http://webcamoid.github.io/
|
||||||
|
|
||||||
|
import os
|
||||||
from WebcamoidDeployTools import DTUtils
|
from WebcamoidDeployTools import DTUtils
|
||||||
|
|
||||||
|
|
||||||
if __name__ =='__main__':
|
if __name__ =='__main__':
|
||||||
system = DTUtils.Utils().system
|
system = DTUtils.Utils().system
|
||||||
|
scriptDir = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
scriptPath = os.path.join(scriptDir, 'deploy_{}.py'.format(system))
|
||||||
|
|
||||||
|
if not os.path.exists(scriptPath):
|
||||||
|
print('No valid deploy script found')
|
||||||
|
exit()
|
||||||
|
|
||||||
deploy = __import__('deploy_' + system).Deploy()
|
deploy = __import__('deploy_' + system).Deploy()
|
||||||
#try:
|
|
||||||
#deploy = __import__('deploy_' + system).Deploy()
|
|
||||||
#except Exception as e:
|
|
||||||
#print('No valid deploy script found: ', e)
|
|
||||||
|
|
||||||
#exit()
|
|
||||||
|
|
||||||
if system == deploy.targetSystem:
|
if system == deploy.targetSystem:
|
||||||
deploy.run()
|
deploy.run()
|
||||||
|
|
Loading…
Reference in a new issue