mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-09 17:26:36 +00:00
bdc8bcd494
libgui/GuiFrame.py:GuiSubMenuDecorator(): added. libgui/GuiFrame.py:loadMenus(): process submenu menu items. libroar/RoarCanvasCommandsFile.py:{_{load,push}Recent,canvasOpenRecent}(): initial implementation. libroar/RoarCanvasCommandsFile.py:_import{,File}(): return pathname along w/ rc. libroar/RoarCanvasCommandsFile.py:canvas{Open,SaveAs}(): call _pushRecent() post-{open,save}. libroar/RoarCanvasCommandsFile.py:__init__(): updated. librtl/RtlPlatform.py: added. librtl/RtlPlatform.py:getLocalConfPathName(): initial implementation. roar.py: manually call _loadRecent() & _pushRecent() post-import. assets/text/TODO: updated.
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
|