14 lines
362 B
Python
14 lines
362 B
Python
# probably shouldnt mess with this!
|
|
# boot depends on it and if u break it u get no safe mode.
|
|
from pathlib import Path
|
|
import os
|
|
import base64
|
|
|
|
Vpn_cache = Path("/tmp/vpn_country.cache")
|
|
Media_flag = Path("/tmp/media_active")
|
|
|
|
def get_base():
|
|
return os.environ.get("BASE_SWAY")
|
|
|
|
def rand12():
|
|
return base64.urlsafe_b64encode(os.urandom(9)).decode()[:12] |