Re: Paths Relavite to Controller Class File
jon klein <[email protected]> Wed, 23 Feb 2005 09:33:29 -0500
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On Feb 22, 2005, at 8:54 PM, Timothy Davison wrote: > Is there any way to include say "Hello.tz" from "MainController.tz", > where both files are in the same folder, without using absolute paths? > Is it just a simple @include "Hello.tz" (in which case I am doing > something wrong :P)? > > Absolute paths aren't a solution because we have people working on > this project who are using different architectures (Windows, Mac, > Linux). breve should find any supporting files which are in the same directory as the main simulation file that you specify on the command-line. So if you're starting breve with the simulation file MainController.tz, then it should find Hello.tz automatically, using the "include" statement that you have specified. If this is not working, please let me know which platform(s) are not able to locate the files and how you are launching the simulation (how the simulation file is referenced on the command-line). An easy workaround is to specify the paths for each platform's directory separately using the "@path" command at the beginning of the simulation. It might look like this for OS X, Windows and Linux, respectively: @path "/Users/me/breve". @path "/C/DOCUMENTS/BREVE". @path "/home/me/breve". @include "Hello.tz". - jon klein _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve