Skip to content

Commit

Permalink
Merge pull request #43 from vincentcasseau/main
Browse files Browse the repository at this point in the history
KCore: notify - minor
  • Loading branch information
vincentcasseau authored Jun 17, 2024
2 parents b5b0de3 + 6ba79d7 commit bbed0e4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Cassiopee/CPlot/apps/validCassiopee.py
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,8 @@ def notifyValidOK():
messageSubject='[Cassiopee] Ready to commit',
messageText=messageText)
except ImportError:
raise SystemError("Error: KCore is required to import notify.")
print("Error: KCore is required to import notify.")
sys.exit()

#==============================================================================
def Quit(event=None):
Expand Down
1 change: 1 addition & 0 deletions Cassiopee/Envs/env_Cassiopee_local
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ else if ($MAC == "ld") then
#------------------------------- ld rocky 8 + python 3 -----------------------------------
setenv ELSAPROD ld
setenv ELSAPROD "$ELSAPROD$INTTYPE"
. /etc/profile.d/modules-onera.sh
module purge
module load occt/7.6.1-gnu831
module load python/3.8.14-gnu831
Expand Down
7 changes: 4 additions & 3 deletions Cassiopee/Envs/sh_Cassiopee_local
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ elif [ "$MAC" = "ld" ]; then
#------------------------------- ld centos 8 + python 3 -----------------------------------
export ELSAPROD=ld
export ELSAPROD=$ELSAPROD$INTTYPE
. /etc/profile.d/modules-onera.sh
module purge
module load occt/7.6.1-gnu831
module load python/3.8.14-gnu831
Expand Down Expand Up @@ -726,17 +727,17 @@ if ! [ -z $OLD_PATHL ]; then
fi

# Prefix with new paths
if [ -n $PATH ]; then
if [ -n "$PATH" ]; then
export PATH=$PATHL:$PATH
else
export PATH=$PATHL
fi
if [ -n $LD_LIBRARY_PATH ]; then
if [ -n "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATHL:$LD_LIBRARY_PATH
else
export LD_LIBRARY_PATH=$LD_LIBRARY_PATHL
fi
if [ -n $PYTHONPATH ]; then
if [ -n "$PYTHONPATH" ]; then
export PYTHONPATH=$PYTHONPATHL:$PYTHONPATH
else
export PYTHONPATH=$PYTHONPATHL
Expand Down
6 changes: 4 additions & 2 deletions Cassiopee/KCore/test/notifyInstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# status of different prods. Please set the environment variable CASSIOPEE_EMAIL
# Usage: python notifyInstall.py --recipients='[email protected] [email protected]'
import os
import sys
from time import strptime, strftime

# Parse command-line arguments
Expand All @@ -19,7 +20,7 @@ def parseArgs():
script_args = parseArgs()
recipients = script_args.recipients.split(' ')
if not recipients[0]:
recipients = ['[email protected]'] #, '[email protected]']
recipients = ['[email protected]', '[email protected]']

# Check install status
log_entries = []
Expand All @@ -44,4 +45,5 @@ def parseArgs():
messageSubject="[Installation] State: {}".format(baseState),
messageText=messageText)
except ImportError:
raise SystemError("Error: KCore is required to import notify.")
print("Error: KCore is required to import notify.")
sys.exit()

0 comments on commit bbed0e4

Please sign in to comment.