Fix small regression in initHook.py of bora & katana.

This commit is contained in:
Jean-Paul Chaput 2023-02-27 22:34:44 +01:00
parent 1557d613ae
commit f404bcc8c0
2 changed files with 4 additions and 7 deletions

View File

@ -2,12 +2,10 @@
try:
import sys
import os.path
import helpers.io
from helpers.io import ErrorMessage
from helpers.io import WarningMessage
import Viewer
from coriolis.helpers.io import ErrorMessage, WarningMessage, catch
import coriolis.Viewer
except Exception as e:
helpers.io.catch( e )
catch( e )
sys.exit( 1 )
@ -23,5 +21,5 @@ def boraHook ( **kw ):
if (os.path.exists(userInit)):
exec( open(userInit).read() )
except Exception as e:
helpers.io.catch( e )
catch( e )
return

View File

@ -18,7 +18,6 @@ def katanaHook ( **kw ):
print( ErrorMessage( 3, 'katana.initHook(): Must be run from a KatanaEngine.' ))
return
try:
print( 'KATANA INIT' )
userInit = os.path.join( os.getcwd(), 'coriolis2/katana.py' )
if (os.path.exists(userInit)):
exec( open(userInit).read() )