Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 smc.vnet.net
  • Subject: [mg65528] Re: current directory
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Thu, 6 Apr 2006 06:52:32 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 4/5/06 at 6:55 AM, gregor.cernivec at fe.uni-lj.si (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

In[11]:=
DeleteCases[FindPackages[$Path, "Spline", FullPath -> True], {}]

Out[11]=
{{"/Applications/Analysis/Mathematica \
5.2.app/AddOns/StandardPackages/Graphics/Spline.m"}}

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