Skip to content

Commit

Permalink
#2525 Removed a log message
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Apr 27, 2023
1 parent 68df283 commit dad2812
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/python/pyembed/python_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ def add_python_path(called_file): # called_file = __file__
met_base_dir = os.environ.get('MET_BASE', None)
if met_base_dir is not None:
met_python_path = os.path.join(met_base_dir, 'python')
if pyembed_tools.debug:
print(f"{method_name} added python path {os.path.abspath(met_python_path)} from MET_BASE")
sys.path.append(os.path.abspath(met_python_path))
if os.path.exists(met_python_path):
if pyembed_tools.debug:
print(f"{method_name} added python path {os.path.abspath(met_python_path)} from MET_BASE")
sys.path.append(os.path.abspath(met_python_path))

# add share/met/python directory to system path
met_python_path = os.path.join(script_dir, os.pardir, 'python')
Expand All @@ -50,8 +51,6 @@ def add_python_path(called_file): # called_file = __file__
if pyembed_tools.debug:
print(f"{method_name} added python path {os.path.abspath(met_python_path)}")
sys.path.append(os.path.abspath(met_python_path))
else:
print(" - {d} does not exist".format(d=met_python_path))

@staticmethod
def call_python(argv):
Expand Down

0 comments on commit dad2812

Please sign in to comment.