wukong-m2m / wukong-darjeeling

Darjeeling for WuKong
Other
20 stars 17 forks source link

"dir" property of application stored in config. #143

Open nielsreijers opened 10 years ago

nielsreijers commented 10 years ago

I'm trying to have the applications (optionally) be part of a scenario directory. The goal is to be able to load a single directory, that should contain all the node hardware configurations (enabled_wuclasses.xml), network config, node status (application, location, IO), and applications. While trying to load the application from my dollhouse scenario, I notice the "dir" property of an application gets loaded from the json file. Since this is just the directory that json file is in, I don't see the point of this, and it breaks my current attempt to make a scenario directory more self contained.

However it's set explicitly on line wuapplication.py:147, where it overwrites the value that had just been set by master_server.py:119. Is there any reason for this or can I just delete that line?