We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cdc5b5 commit d8f316aCopy full SHA for d8f316a
typer/main.py
@@ -1,6 +1,5 @@
1
import inspect
2
import os
3
-import platform
4
import shutil
5
import subprocess
6
import sys
@@ -1072,13 +1071,15 @@ def run(function: Callable[..., Any]) -> None:
1072
1071
1073
1074
def _is_macos() -> bool:
1075
- return platform.system() == "Darwin"
+ return sys.platform == "darwin"
1076
1077
1078
def _is_linux_or_bsd() -> bool:
1079
- if platform.system() == "Linux":
+ if sys.platform == "linux":
1080
return True
1081
+ import platform
1082
+
1083
return "BSD" in platform.system()
1084
1085
0 commit comments