MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Path to *.m file


On Mar 13, 5:32=A0am, David Bailey <dave at Remove_Thisdbailey.co.uk>
wrote:
> Carl Woll wrote:
> > I'm not sure why this is a `Private` variable, but this information can
> > be found from:
>
> > System`Private`$InputFileName
>
> This is very useful, and I have checked, and it was there at 5.2, so I
> guess it is one of those long-term undocumented features!
>
> However, it would be nice if it (or the subsequent documented feature)
> always returned the absolute path-name. As it is, Get["xxx.m"] sets this
> variable to ".\\xx.m", which is less convenient, and misleading if the
> code in the package has already executed a SetDirectory call.
>
> David Baileyhttp://www.dbaileyconsultancy.co.uk

Some time ago, I think before 6.0, WRI technical support suggested the
following to me (ultimately from the developers):

        System`Private`FindFile[$Input].

Vince Virgilio


  • Prev by Date: Re: Need help to find position of max location
  • Next by Date: Re: question on Cases with elements that might be strings
  • Previous by thread: Re: Path to *.m file
  • Next by thread: Re: Path to *.m file