Use only first part of hostname
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e6db06d2d7
commit
04a54c4a48
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
import socket
|
||||
|
||||
hostname = socket.gethostname()
|
||||
hostname = socket.gethostname().split('.')[0]
|
||||
|
||||
s = 0
|
||||
for c in hostname:
|
||||
|
|
Loading…
Reference in a new issue