Hi Eric! I actually used them only once, because in my scenario somehow $(TOP) and the node variable referring to top folder of the project are sometimes different... This only happens when I open a file in Tuprules.lua for parsing. If the rules are included from different Tupfile.lua files, then $(TOP) may become "../" or "../../", but somehow the code that opens the files in lua expects the path to be relative to the file that has io.open(...) - Tuprules.lua, and the path should always be "."... I think that this may be some slight bug in lua support, but the node variable works in this case.
In case you wonder why I did not just hardcode "./" in the path - the reason is that sometimes I actually include Tuprules.lua from a different Tuprules.lua file, in which case this gets even stranger, because the path to opened file still has to be relative to the file that actually has theĀ io.open() function, even if this file is included in a different Tuprules.lua... https://github.com/DISTORTEC/distortos/blob/master/Tuprules.lua Special use case https://github.com/DISTORTEC/distortosExamples/blob/master/Tuprules.lua Regards, FCh -- -- tup-users mailing list email: [email protected] unsubscribe: [email protected] options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
