Hi Alec, Have you tried just adding the base directory to sys.path? It would be the level that matches the src/ directory structure, in the built/compiled version. I think you should then be able to do things like "import nox.netapps.discovery.discovery as discovery" successfully. Would this help with what you're trying to do? This worked for me at one point, but I haven't tried it with recent versions of nox.
-Reid On Mon, Nov 22, 2010 at 9:07 PM, Alec Story <av...@cornell.edu> wrote: > Hi, > > I'd like to be able to link against nox (for the purpose of running unit > tests that depend on nox but don't actually need it to be running) without > invoking the nox binary, in python. If I try to do this naively by adding > all of nox's subdirectories to sys.path, I get swig errors, so clearly > that's not the right way to do it. > > Is there a way to get this linking to work? > > -- > Alec Story > Cornell University > Biological Sciences, Computer Science 2012 > > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org > >
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org