Fix small regression in initHook.py of bora & katana.
This commit is contained in:
parent
1557d613ae
commit
f404bcc8c0
|
@ -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
|
||||
|
|
|
@ -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() )
|
||||
|
|
Loading…
Reference in New Issue