I think it defaults to where you image is, but you can inspect FileSystem workingDirectory in Playground and see for yourself :)


On Wed, Oct 19, 2016 at 1:51 PM, wvzuilen <wvzuilen@gmail.com> wrote:
Hi all,

I'm new to Smalltalk and Pharo, so be kind ;-) I've tried Google and
searching the world.st forum but I couldn't find the answer to the following
question:

I looks like the default working directory of my MacOS Pharo instance is a
path inside the Pharo5.0.app:
/Applications/Pharo5.0.app/Contents/Resources

This causes that Pharo can't write to that path and soms default tests are
trying to do exactly that:

testFileExists
�� �� �� �� | file |
�� �� �� �� file := File named: 'asd.txt'.
�� �� �� �� file writeStream close.
�� �� �� �� self assert: file exists.
�� �� �� �� file delete

Of course I could edit the tests, but I would rather change the default
working directory. Is this possible?

Greetings Wouter



--
View this message in context: http://forum.world.st/Default-working-directory-tp4919393.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.