mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-29 07:21:27 +00:00
8 lines
195 B
Python
8 lines
195 B
Python
#!/usr/bin/env python3
|
|
|
|
# Get domain from /var/domain without trailing new line
|
|
def get_domain():
|
|
with open("/var/domain", "r") as f:
|
|
domain = f.readline().rstrip()
|
|
return domain
|