* move hardware to system/ * fix mypy old-commit-hash: 1139fe507b01f34de9714c99228f411558b44231
12 lines
261 B
Python
12 lines
261 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
from system.hardware import PC
|
|
|
|
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../"))
|
|
|
|
if PC:
|
|
PERSIST = os.path.join(str(Path.home()), ".comma", "persist")
|
|
else:
|
|
PERSIST = "/persist"
|