[m-users.] Path independence?

Julien Fischer jfischer at opturion.com
Mon Jul 29 11:35:42 AEST 2013

On Sat, 27 Jul 2013, Peter Wang wrote:

> On Sat, 27 Jul 2013 04:14:39 +1000 (EST), Julien Fischer <jfischer at opturion.com> wrote:
>> Hi,
>> On Fri, 26 Jul 2013, Mark Green wrote:
>>> Thanks for your reply. Is there a particular reason why it's done this
>>> way? Eg, why it couldn't be changed to `dirname $0` on bash or %~dp0
>>> in Windows to calculate the path relative to where the mmc/mercury
>>> script is running from?
>> I think that the paths involved need to absolute, which `dirname $0`
>> won't necessarily be.  Using %~dp0 to caculate the paths in a batch file
>> should be fine though.
> We can prepend $PWD if necessary (falling back to `pwd`).
> Would that do it?

That would just give you the directory in which invoke mmc, not the
directory in which mmc resides.


More information about the users mailing list