roar/librtl/RtlPlatform.py

16 lines
427 B
Python
Raw Normal View History

#!/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)
2019-09-23 16:49:33 +00:00
# vim:expandtab foldmethod=marker sw=4 ts=4 tw=120