Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: current directory

  • To: mathgroup at
  • Subject: [mg65528] Re: current directory
  • From: Bill Rowe <readnewsciv at>
  • Date: Thu, 6 Apr 2006 06:52:32 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

On 4/5/06 at 6:55 AM, gregor.cernivec at (gregorc) wrote:

>I would like to know how to get a path of an *.m file as a procedure
>inside the same *.m file.

The function FindPackages in Utilities`Package` can be used to get the path to any .m file that can be found by Mathematica. For example, consider

DeleteCases[FindPackages[$Path, "Spline", FullPath -> True], {}]

{{"/Applications/Analysis/Mathematica \"}}

You could have your package load this package and use the FindPackages function or open the Package.m file with a text editor to see what parts of that function you want incorporated into your function
To reply via email subtract one hundred and four

  • Prev by Date: Re: Two independent y axes ?
  • Next by Date: Re: Count Function
  • Previous by thread: Re: current directory
  • Next by thread: HoldFirst question