16 lines
345 B
Python
16 lines
345 B
Python
#! /usr/bin/env python3
|
|
|
|
import os, sys
|
|
|
|
|
|
if not os.path.exists(os.sep + "home" + os.sep + os.environ["USER"]) is True:
|
|
print("yes")
|
|
|
|
my_discts = {}
|
|
with open("/etc/os-release", "r") as file:
|
|
lines = list(map(str.rstrip, file))
|
|
for line in lines:
|
|
date = line.split("=")
|
|
my_discts[date[0]] = date[1]
|
|
|
|
print(my_discts) |