Hi Victor, I think it would not be too difficult to do this and I thnk this will work in a way that it won't actually change the directory, just append to the search path, and even then, only optionally if a flag is enabled. The changes would be: -in csoundCore.h, add one int field to OPARMS (maybe call it relativeToFile) -in Top/argdecode.c (decode_long), add: } else if (!(strcmp(s, "relative-to-file"))) { O->pathsRelativeToFile = 1; return 1; } (if --relative-to-file is an okay name to use) -in Top/main.c in csoundCompile, in the area of code where it check's for if it's a CSD being loaded, we could add code like (in pseudocode): if(O->relativeToFile) { char * dir = csoundGetDirectory(filename); csoundAppendEnv(csound, "SADIR", dir); csoundAppendEnv(csound, "SSDIR", dir); csoundAppendEnv(csound, "INCDIR", dir); csoundAppendEnv(csound, "MIDIDIR", dir); // not sure what the name of this env var is } The csoundGetDirectory would be function we could add to envvar.c that would resolve if a relative path name is given to the current working directory. How does this sound? Completely optional and defaulting to prior behavior and has no directory changing. steven On 10/19/06, Victor Lazzarini wrote: > what about search paths on the Csound Lib. Would it > be possible to add the CSD,ORC and SCO (if different) paths > to the search? > > At 11:31 19/10/2006, you wrote: > >I am still not sure that I agree with the majority (as is historically > >the case) but I changed winsound to chdir to the directory of the > >.csd/.orc file if it is an absolute address. I suspect I have got > >this wrong on Windows in some cases but this is closest to how I think > >it should be done that I can manage before breakfast. > > I still think this is a frontend issue and not a core one. > >==John ffitch > > > >------------------------------------------------------------------------- > >Using Tomcat but need to do more? Need to support web services, security? > >Get stuff done quickly with pre-integrated technology to make your job easier > >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >_______________________________________________ > >Csound-devel mailing list > >Csound-devel@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/csound-devel > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net