os_.py 302 B

1234567891011121314151617181920
  1. '''
  2. Created on 1 mars 2017
  3. @author: olivier.massot
  4. '''
  5. import os
  6. import socket
  7. import uuid
  8. def iswin():
  9. return "nt" in os.name
  10. def current_drive_letter():
  11. return os.path.splitdrive(__file__)[0]
  12. def cpuname():
  13. return socket.gethostname()
  14. def mac_adress():
  15. return hex(uuid.getnode())