From: Chris M. <gi...@gi...> - 2014-02-26 09:33:10
|
pncconf -change share/ location definition code let linuxcnc python extention figure it out for us http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=0b86aab --- src/emc/usr_intf/pncconf/private_data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emc/usr_intf/pncconf/private_data.py b/src/emc/usr_intf/pncconf/private_data.py index f913a07..2d13175 100644 --- a/src/emc/usr_intf/pncconf/private_data.py +++ b/src/emc/usr_intf/pncconf/private_data.py @@ -24,6 +24,7 @@ # import os +import linuxcnc class Private_Data: def __init__(self,app,bin_dir,base_dir): @@ -55,7 +56,7 @@ class Private_Data: self._IMPERIAL = 0 self._METRIC = 1 - self.DATADIR = os.path.join(os.path.abspath(BIN), "..", "share", "linuxcnc","pncconf") + self.DATADIR = linuxcnc.SHARE + "/linuxcnc/pncconf" self.WIZARD = os.path.join(self.DATADIR, "linuxcnc-wizard.gif") if not os.path.isfile(self.WIZARD): self.WIZARD = os.path.join("/etc/linuxcnc/linuxcnc-wizard.gif") |