mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-16 07:33:16 +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
|