Fix small regression in initHook.py of bora & katana.
This commit is contained in:
parent
1557d613ae
commit
f404bcc8c0
|
@ -2,12 +2,10 @@
|
||||||
try:
|
try:
|
||||||
import sys
|
import sys
|
||||||
import os.path
|
import os.path
|
||||||
import helpers.io
|
from coriolis.helpers.io import ErrorMessage, WarningMessage, catch
|
||||||
from helpers.io import ErrorMessage
|
import coriolis.Viewer
|
||||||
from helpers.io import WarningMessage
|
|
||||||
import Viewer
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
helpers.io.catch( e )
|
catch( e )
|
||||||
sys.exit( 1 )
|
sys.exit( 1 )
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,5 +21,5 @@ def boraHook ( **kw ):
|
||||||
if (os.path.exists(userInit)):
|
if (os.path.exists(userInit)):
|
||||||
exec( open(userInit).read() )
|
exec( open(userInit).read() )
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
helpers.io.catch( e )
|
catch( e )
|
||||||
return
|
return
|
||||||
|
|
|
@ -18,7 +18,6 @@ def katanaHook ( **kw ):
|
||||||
print( ErrorMessage( 3, 'katana.initHook(): Must be run from a KatanaEngine.' ))
|
print( ErrorMessage( 3, 'katana.initHook(): Must be run from a KatanaEngine.' ))
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
print( 'KATANA INIT' )
|
|
||||||
userInit = os.path.join( os.getcwd(), 'coriolis2/katana.py' )
|
userInit = os.path.join( os.getcwd(), 'coriolis2/katana.py' )
|
||||||
if (os.path.exists(userInit)):
|
if (os.path.exists(userInit)):
|
||||||
exec( open(userInit).read() )
|
exec( open(userInit).read() )
|
||||||
|
|
Loading…
Reference in New Issue