diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-02-23 21:47:52 +0100 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-04-05 08:39:02 +0200 |
commit | 3201557bfbed7ad81e0e5a34ece48bbd93ad709b (patch) | |
tree | dd213153dad1c146fa177a818b355341ed59edfb /grc/gui/Platform.py | |
parent | 7453e24321e6ca237ded87a6bbed8d645d2a6b53 (diff) |
grc-refactor: move gui prefs to gui
Diffstat (limited to 'grc/gui/Platform.py')
-rw-r--r-- | grc/gui/Platform.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/grc/gui/Platform.py b/grc/gui/Platform.py index 85a6872027..cfd5ae3e3d 100644 --- a/grc/gui/Platform.py +++ b/grc/gui/Platform.py @@ -20,16 +20,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import os import sys -from .Element import Element - from ..core.Platform import Platform as _Platform -from ..core.Constants import PREFS_FILE, PREFS_FILE_OLD from .Block import Block as _Block +from .Connection import Connection as _Connection +from .Constants import PREFS_FILE, PREFS_FILE_OLD +from .Element import Element from .FlowGraph import FlowGraph as _FlowGraph from .Param import Param as _Param from .Port import Port as _Port -from .Connection import Connection as _Connection class Platform(Element, _Platform): @@ -37,6 +36,11 @@ class Platform(Element, _Platform): def __init__(self): Element.__init__(self) _Platform.__init__(self) + + # Ensure conf directories + if not os.path.exists(os.path.dirname(PREFS_FILE)): + os.mkdir(os.path.dirname(PREFS_FILE)) + self._move_old_pref_file() self._prefs_file = PREFS_FILE |