roar/librtl/RtlPlatform.py

15 lines
426 B
Python

#!/usr/bin/env python3
#
# RtlPlatform.py
# Copyright (c) 2018, 2019 Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
# This project is licensed under the terms of the MIT licence.
#
import os, platform
def getLocalConfPathName(*args):
vname = "LOCALAPPDATA" if platform.system() == "Windows" else "HOME"
return os.path.join(os.getenv(vname), "roar", *args)
# vim:expandtab foldmethod=marker sw=4 ts=4 tw=120