From: Jeff M. <jef...@za...> - 2018-11-12 15:13:05
|
Sounds like you're just trying to use good old sys *argv (argument list) *and *argc (argument count)*.. I'd assume they work in jython much like python, so you could iterate across argv using a for-loop say, or use an argument handling library to make it easier to have fancy argument lists. But just picking up the first string (if present) with "import sys" and "sys.argv [ 0 ]" might do you.. jeff On Mon, Nov 12, 2018 at 3:47 AM Balanand Jha <bal...@gm...> wrote: > Hello everyone, > > I created a little project in jython using one Java library (owlapi5.1) > and one python library (dendropy) along with other built in jython > functions for string and file i/o operations. The program is working fine > on itself from within the eclipse environment. Now I want to integrate/call > (or whatever it is called technically) from my main C++ project which I am > developing using visual studio IDE (.NET framework is *not* involved). > What my jython program does is to take a simple text file as input and > converts it's format and saves it as another text file. I want to generate > that input file from my C++ project, call jython program and pass this file > to it (directly or though file system), and let jython program save the > output file to the disc. > > I am completely new to the jython concept and do not have a slightest idea > of how this can be done. Any help would be greatly appreciated. > > Thanks in advance. > > Bala > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |