env.py 189 B

1234567891011121314
  1. import os
  2. import socket
  3. def getlogin() -> str:
  4. return os.getlogin()
  5. def gethostname() -> str:
  6. return socket.gethostname()
  7. def is_windows() -> bool:
  8. return os.name == "nt"