mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-15 12:06:37 +00:00
17 lines
466 B
Python
17 lines
466 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
|
||
|
|
||
|
# {{{ getLocalConfPathName(*args)
|
||
|
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
|