author | etisserant |
Tue, 11 Sep 2007 17:34:31 +0200 | |
changeset 272 | bbdbf0c17d3c |
parent 271 | 2f286d3fc7f6 |
child 273 | 58b39f97e352 |
--- 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)