add
This commit is contained in:
20
ccxt/static_dependencies/ethereum/utils/debug.py
Normal file
20
ccxt/static_dependencies/ethereum/utils/debug.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import platform
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
def pip_freeze() -> str:
|
||||
result = subprocess.run("python -m pip freeze".split(), stdout=subprocess.PIPE)
|
||||
return f"python -m pip freeze result:\n{result.stdout.decode()}"
|
||||
|
||||
|
||||
def python_version() -> str:
|
||||
return f"Python version:\n{sys.version}"
|
||||
|
||||
|
||||
def platform_info() -> str:
|
||||
return f"Operating System: {platform.platform()}"
|
||||
|
||||
|
||||
def get_environment_summary() -> str:
|
||||
return "\n\n".join([python_version(), platform_info(), pip_freeze()])
|
||||
Reference in New Issue
Block a user