Re: Why init.m is not being loaded from Autload folder? [Mathematica 7]
- To: mathgroup at smc.vnet.net
- Subject: [mg103954] Re: [mg103905] Why init.m is not being loaded from Autload folder? [Mathematica 7]
- From: John Fultz <jfultz at wolfram.com>
- Date: Tue, 13 Oct 2009 23:20:57 -0400 (EDT)
- Reply-to: jfultz at wolfram.com
The init.m file doesn't go directly into the Autoload directory, but into the Kernel/ subdirectory of an application directory in Autoload. So, for example, Autoload/MyApp/Kernel/init.m This way, multiple applications can be installed into the Autoload directory and Mathematica will be initialized by each one in turn. Sincerely, John Fultz jfultz at wolfram.com User Interface Group Wolfram Research, Inc. On Mon, 12 Oct 2009 06:36:22 -0400 (EDT), Nasser M. Abbasi wrote: > Hello, > > Mathematica 7, windows XP sp2. > > When I put my init.m in the following Autoload folders and restart the > kernel, these files are no being loaded (I know, since I append something > to > the Path, and I see that it does NOT get appended by looking at $Path > after > Mathematica is up). > > However, according to help on init.m it says under ref/file/init.m the > following: > > "Mathematica will also load init.m files from Autoload directories." > > I put the init.m in each of the following folder, one at a time, restart > the > kernel, and the $Path was not changed as excpected. I also restarted > Mathematica, and still the init.m was not loaded from any of these > folders: > > $UserBaseDirectory/Autoload/init.m > > The above becomes > C:\Documents and Settings\Owner\Application Data\Mathematica\Autload > > > $BaseDirectory/Autoload/init.m > > The above becomes > "C:\\Documents and Settings\\All Users\\Application > Data\\Mathematica\Autload" > > > $InstallationDirectory/SystemFiles/Autload/init.m > > The above becomes > C:\Program Files\Wolfram Research\Mathematica\7.0\SystemFiles\Autoload > > But when I put the same init.m in say $UserBaseDirectory/kernel/init.m as > per help also, it is now loaded OK and $Path now shows the additional > path I > have appended to it. > > So, why isn't init.m being loaded from Autoload folder? > > --Nasser