octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows: different behaviour of octave.bat and octave-cli/gui.exe re


From: Nicholas Jankowski
Subject: Re: Windows: different behaviour of octave.bat and octave-cli/gui.exe regarding modifying path
Date: Mon, 8 Aug 2016 16:07:22 -0400

On Mon, Aug 8, 2016 at 3:52 PM, Abhinav Tripathi <address@hidden> wrote:
Hi,
 
I have just one question, why aren't the other executables supposed to modify the PATH when it helps resolve this issue?

.
Abhinav

you don't want multiple files changing the path when starting octave. the windows version is designed to use available widows scripting language to find the local path and set it. this is done with the octave.bat file. after taking care of startup steps, octave.bat calls the appropriate executable. 

Octave.bat runs the following line:

set OCT_HOME=%~dp0

to find the current location of octave and then that gets added to the path.  This enables the zip-file "installer" for windows, as well as having multiple versions of Octave installed at one time.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]