Skip to content

Commit

Permalink
XPat options file is now saved in the preferences folder -- the plugi…
Browse files Browse the repository at this point in the history
…n directory may not be writable
  • Loading branch information
NiklasRosenstein committed Apr 10, 2018
1 parent a89c715 commit b4d2ec8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/c4d_xpat/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from . import res
from .res import __res__

OPTIONS_FILENAME = res.localpath('../config.json')
OPTIONS_FILENAME = os.path.join(c4d.storage.GeGetC4DPath(c4d.C4D_PATH_PREFS), 'xpat-options.json')

def align_nodes(nodes, mode, spacing):
r"""
Expand Down Expand Up @@ -183,9 +183,7 @@ def dialog(self):
self._dialog = XPAT_OptionsDialog()
return self._dialog

# c4dtools.plugins.Command

# c4d.gui.CommandData
# c4d.plugins.CommandData

def Execute(self, doc):
return self.dialog.Open(c4d.DLG_TYPE_ASYNC)
Expand Down

0 comments on commit b4d2ec8

Please sign in to comment.