# HG changeset patch # User etisserant # Date 1189524871 -7200 # Node ID bbdbf0c17d3c2bfe23ceb531fd2c24b81783dbdb # Parent 2f286d3fc7f64627025082023b68b8b6e56e9a13 Added SetRoot in networkedit to change project root on the fly diff -r 2f286d3fc7f6 -r bbdbf0c17d3c objdictgen/nodelist.py --- a/objdictgen/nodelist.py Mon Sep 10 18:13:28 2007 +0200 +++ b/objdictgen/nodelist.py Tue Sep 11 17:34:31 2007 +0200 @@ -62,6 +62,14 @@ def GetRoot(self): return self.Root + + def SetRoot(self, newrootpath): + """ + Define a new path for the CanOpen network project + !!! Does not check if new path is valid !!! + """ + self.Root = newrootpath + self.Manager.SetCurrentFilePath(os.path.join(self.Root, "master.od")) def GetSlaveNumber(self): return len(self.SlaveNodes)