Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
robinthibaut committed Mar 6, 2021
1 parent 34491fa commit c6d1247
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pysgems/sgems/sg.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self,
if not gstl_home:
msg = "GSTLAPPLIHOME environment variable does not exist"
warnings.warn(msg)
logger.info(msg)
logger.warning(msg)
else:
msg = "GSTLAPPLIHOME environment variable found"
logger.info(msg)
Expand All @@ -40,14 +40,14 @@ def __init__(self,
msg = f"Variable {gstl_home} does not exist in Path environment variable"
warnings.warn(
msg)
logger.info(msg)
logger.warning(msg)
if not exe_name: # If no sgems exe file name is provided,
# checks for sgems exe file in the GSTLAPPLIHOME path
for file in os.listdir(gstl_home):
if (file.endswith(".exe") and ("sgems" in file)
and ("uninstall" not in file)):
exe_name = file
msg = f"sgems exe file : {exe_name}"
msg = f"sgems exe file : {exe_name} in {gstl_home}"
logger.info(msg)

# Project name
Expand Down

0 comments on commit c6d1247

Please sign in to comment.