Difference between revisions of "PATH"

(Created page with "The PATH variable is a list of paths (directories) that get scanned for commands to run without having to enter their full path. This is useful for easier interaction with dev...")
 
m (Added i18n.)
 
Line 51: Line 51:
  
 
and add that your <code>~/.profile</code> file to make it permanent.
 
and add that your <code>~/.profile</code> file to make it permanent.
 +
 +
== Other Languages ==
 +
{{i18n|PATH}}

Latest revision as of 06:24, 12 September 2016

The PATH variable is a list of paths (directories) that get scanned for commands to run without having to enter their full path. This is useful for easier interaction with development executables like love.exe (simply love on OS X/Linux).

On this page you will learn how to add your LÖVE directory to PATH.

Windows

First, locate your love.exe. If it's in C:\Program Files\LOVE\ then that's the path you need to add.

Windows 10, Windows 8

  1. In Search, search for and then select: System (Control Panel)
  2. Click the Advanced system settings link.
  3. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  4. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.

Windows 7

  1. From the desktop, right click the Computer icon.
  2. Choose Properties from the context menu.
  3. Click the Advanced system settings link.
  4. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  5. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.

Windows Vista

  1. From the desktop, right click the My Computer icon.
  2. Choose Properties from the context menu.
  3. Click the Advanced tab (Advanced system settings link in Vista).
  4. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  5. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.

Windows XP

  1. Select Start, select Control Panel. double click System, and select the Advanced tab.
  2. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  3. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.

Mac OS X

First, locate your love.app. If it's in /Applications/, then the path you need to add is /Applications/love.app/Contents/MacOS/.

In the Terminal app, run:

export PATH=$PATH:/Applications/love.app/Contents/MacOS/

To make the change permanent, you will have to add that line to your ~/.profile file.

Linux

If you installed LÖVE system-wide, love most likely is already in PATH. Doesn't work? Consider restarting.

Otherwise, locate your love binary and run

export PATH=$PATH:/path/to/folder/with/love/binary/

and add that your ~/.profile file to make it permanent.

Other Languages