Skip to content

Commit

Permalink
chore: make print message format more consistent
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Nov 6, 2023
1 parent 681ddad commit 5f41f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def on_pre_start(
super().on_pre_start(window, initiating_view, workspace_folders, configuration)

python_path = cls.python_path(configuration.settings, workspace_folders)
print('{}: Using python path "{}"'.format(cls.name(), python_path))
print('{}: INFO: Using python path "{}"'.format(cls.name(), python_path))
configuration.settings.set("python.pythonPath", python_path)
return None

Expand Down Expand Up @@ -252,7 +252,7 @@ def binary_from_python_path(path: str) -> Optional[str]:
except PermissionError as e:
print("{}: WARN: subprocess failed with permission error: {}".format(cls.name(), e))
except subprocess.CalledProcessError as e:
print("{}: WARN: subprocess failed: {}".format(cls.name(), e.output))
print("{}: WARN: subprocess failed: {}".format(cls.name(), str(e.output).strip())

# virtual environment as subfolder in project
for file in os.listdir(workspace_folder):
Expand Down

0 comments on commit 5f41f79

Please sign in to comment.