Hi Torsten,
I hope you don't mind me coming back on this issue after this time.
Expermenting with your suggestions produced the following results:
0.1. I removed aquaemacs and all .emacs en pref files and reinstalled
aquaemacs 1.7
0.2. The same for Mozart (1.4). I've to set the path to ozg by hand,
this is not done by the installation! Maybe therein lies the problem?
1. From a fresh start of the OPI via (aqua)emacs and a restart (as you
described) {OS.getCWD} always produces '/'.
2. I've put the following lines in to the code of LambdaScanner.ozg
after opening the file in OPI:
declare
{Inspect {OS.getCWD}}
{OS.chDir '/Users/twan'}
{Inspect {OS.getCWD}}
%% Etc
The first time I feed the file to the emulator (C-. C-b), the CWD is
'/' and then '/Users/twan', as expected, but the gump files end up in
the root '/'.
Immediatly after that I again feed the file to the emulator, and the
CWD is '/Users/twan' and the gump files end up in '/Users/twan'.
On 20 mrt 2009, at 13:37, Torsten Anders wrote:
Dear Nanitous,
On 20 Mar 2009, at 11:47, Nanitous wrote:
But what happens now is that the *.o, *.l, *.so and *.C files are
created in the root directory of my system (Mac OS X) instead of my
home directory when I compile the scanner in OPI.
On my system (also Mac, with Aquamacs) these files are created in
the directory of the scanner. I am not sure why things are different
at your side. What does the compiler buffer say?
Mozart sets the current working directory by default to the
directory of the file in which you started the compiler. Perhaps
that directory is used? You can check that with
{OS.getCWD}
If you are working in the OPI, you may simply halt and restart Oz in
the respective file (C-. h C-. r).
Best
Torsten
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586219
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users