Get hostname
This commit is contained in:
parent
7036739163
commit
e2447cbb98
1 changed files with 5 additions and 0 deletions
|
|
@ -11,11 +11,16 @@ import os
|
||||||
from sys import exit
|
from sys import exit
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import signal
|
import signal
|
||||||
|
from socket import getfqdn
|
||||||
|
|
||||||
#url="http://url/to/info"
|
#url="http://url/to/info"
|
||||||
|
|
||||||
user_home=str(Path.home())
|
user_home=str(Path.home())
|
||||||
|
|
||||||
|
hostname=getfqdn()
|
||||||
|
|
||||||
|
print(hostname)
|
||||||
|
|
||||||
def load_config():
|
def load_config():
|
||||||
|
|
||||||
yes_config=False
|
yes_config=False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue