I think there is a command that does this for you but I've never used
it. The easiest thing is to just open meta.json and add your component
in there just how the other components are done (pyswitch for
example).

Then edit Makefile.am doing the same thing. If you open that file it
should be fairly obvious what you need to add. Afterwards just rerun
./boot.sh; ./configure; make

Aaron

On Wed, Mar 14, 2012 at 5:59 PM, 莫维扬 <[email protected]> wrote:
> Hi,
>
> I created a new controller called pytestswitch.py and hope to run this
> component. I put it into src/nox/coreapps/examples and tried to run
> ./nox_core -v -i ptcp: pytestswitch( which worked for ./nox_core -v -i ptcp:
> pytutorial as an example)
>
> I read the 3 steps but still confused.
> 1.Add pytestswitch.py file to src/nox/coreapps/examples, it's
> straightforward.
> 2.Copy code from src/nox/coreapps/pyloop.py(you need to mirror everything
> except for the code under the install method) Add your Python file(s) ) to
> NOX_RUNTIMEFILES in src/nox/apps/examples/meta.json. How can I do that, I
> cannot open the json file.
> 3.Update src/nox/apps/examples/meta.json to include your new app. Any
> command to update the json file?
>
> Thanks very much
>
> Weiyang Mo



-- 
Aaron O. Rosen
Masters Student - Network Communication
306B Fluor Daniel

Reply via email to