Updating path in windows

After unpacking the Scala distribution on Windows, you may find yourself having to set the PATH environment variable every time you open a new Command Prompt.

The instructions below will explain how to set PATH permanently.

From this moment on, every time you open the Command Prompt you will be able to type just "scala" to get to the Scala interpreter.

The Path environment variable is an important setting which has been around since the days of DOS, yet for some reason Windows has always made it awkward to view and edit.

An example variable could look like this (assuming the first two entries are Windows’ default): which will cause the script to be executed by by default (both executables are located in the top-level of your Python installation directory). You can also make all Even though Python aims to be portable among all platforms, there are features that are unique to Windows.

A couple of modules, both in the standard library and external, and snippets exist to use these features.

Please note that you will only be able to change PATH in this manner if your Windows account has administrator rights.

updating path in windows-20updating path in windows-7

This splits your Path into its various folders and displays them on separate lines, so there’s far less horizontal scrolling required to view everything.

If the environment variable does not exist, then the Replace action creates a new environment variable.

Unlike most Unix systems and services, Windows does not require Python natively and thus does not pre-install a version of Python.

I use the user PATH variable to complement the PATH with user-specific config.

I would like to update the user PATH variable from command-line for example with setx.

Each folder may be edited in place, much like Explorer file or folders names: just click something and type. You don’t have to remember or type it any more, just tap Browse and select whatever you need.

You must have an account to comment. Please register or login here!