This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Path oldWorkingDir = Path.currentPath(); Path file = path.getAbsolute(); Path.setCurrentPath(file.getDirectory());
try {
...
} finally {
Path.setCurrentPath(oldWorkingDir);
}I have no idea if it is meant to be done this way, but now it works for me at least.
(btw: I saw that the Attribute "relative" in the class "load" isn't used at all.)
Additionally, the long stack traces when kawa encounters an unbound symbol annoyed me. So, I added another catch to Shell.run:
catch (UnboundLocationException ule)
{
perr.println(ule.getMessage());
}Best regards Daniel Sadilek
Attachment:
kawa.patch
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |