[m-users.] Path independence?
Peter Wang
novalazy at gmail.com
Sat Jul 27 11:42:38 AEST 2013
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?
Peter
More information about the users
mailing list