-
Notifications
You must be signed in to change notification settings - Fork 291
Add guide for setting up windows path variable #653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
VerinSenpai
wants to merge
2
commits into
space-wizards:master
from
VerinSenpai:path-variable-tutorial
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+37 KB
...ages/general-development/setup/you-forgot-your-path-variables/cmd-example-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+278 KB
...ages/general-development/setup/you-forgot-your-path-variables/cmd-example-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+208 KB
...sets/images/general-development/setup/you-forgot-your-path-variables/step-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+95.8 KB
...sets/images/general-development/setup/you-forgot-your-path-variables/step-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+179 KB
...sets/images/general-development/setup/you-forgot-your-path-variables/step-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+153 KB
...sets/images/general-development/setup/you-forgot-your-path-variables/step-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+194 KB
...sets/images/general-development/setup/you-forgot-your-path-variables/step-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
src/en/general-development/setup/you-forgot-your-path-variables.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # So, you forgot to add git to path. | ||
|
|
||
| If you've forgotten to add git and python to path during install, or weren't provided with the option to do so, you're in the right place. | ||
|
|
||
| Your path environment contains "paths" (funny, right?) to folders that contain command line executables, among other things. | ||
|
|
||
| Your command line tool then makes these executables invokable without you needing to know or point to where the exe is located. | ||
|
|
||
|  | ||
|
|
||
| The difference is left and right as it were. | ||
|
|
||
| # So, why do I need this? | ||
|
|
||
| Some of the tools we use to make development easier don't assume or make exceptions if you *don't* have your path variables setup. | ||
|
|
||
| .\RUN_THIS.py for instance. While you can invoke the script by directly pointing to a python executable, the script itself is going to call "git". It doesn't know where git is installed, so if git isn't in your path variable, the command will fail. This comes in the form of a FileNotFoundError. If that's what you're seeing, now you know why. | ||
|
|
||
| # So, how do I fix it? | ||
|
|
||
| There are a few steps, but follow closely and you'll get there. It's really not that hard. | ||
|
|
||
| - Click start and type Path. | ||
|
|
||
| - Click "Edit the system environment variables". You may be prompted by UAC. | ||
|
|
||
|  | ||
|
VerinSenpai marked this conversation as resolved.
|
||
|
|
||
| - Click "Environment Variables" in the bottom right corner. | ||
|
|
||
|  | ||
|
VerinSenpai marked this conversation as resolved.
|
||
|
|
||
| - Double-click on Path in either the upper or lower white box. | ||
|
|
||
| ~~~admonish info "System or User?" | ||
| You have a choice here. If you want other users on your computer to have easy access to these command line applications, choose system (lower box). Otherwise, choose user (upper box). | ||
| ~~~ | ||
|
|
||
|  | ||
|
VerinSenpai marked this conversation as resolved.
|
||
|
|
||
| - This next bit is the hard part. You need to know where python and git are installed. | ||
|
|
||
| ~~~admonish info "Install Locations" | ||
| If you didn't change where the applications are installed during setup, try checking where they go by defalut first. | ||
|
|
||
| For Python: | ||
| C:\Program Files\Python<Version>\ (All Users) | ||
| C:\Users\<YourUsername>\AppData\Local\Programs\Python\Python<Version>\ (Per User) | ||
|
|
||
| For Git: | ||
| C:\Program Files\Git\cmd\ | ||
| ~~~ | ||
|
|
||
| - In the "Edit environment variable" window, double-click on a new line. A text entry box will appear and the line will highlight blue. | ||
|
|
||
|  | ||
|
VerinSenpai marked this conversation as resolved.
|
||
|
|
||
| - Add git and python to path. You'll want to make sure path is targeting the /cmd/ folder for git and both the root and /scripts/ folder for python. | ||
|
|
||
|  | ||
|
VerinSenpai marked this conversation as resolved.
|
||
|
|
||
| - Make certain you click OK on all three windows. Otherwise, your changes here won't save, and you'll still be having problems. | ||
|
|
||
| - Close and restart your terminal application. Path changes don't take effect immediately. You have to restart any terminals using the path variable before changes will work. | ||
|
|
||
| - Test your changes. Open a new terminal instance and run "git". | ||
|
|
||
|  | ||
|
VerinSenpai marked this conversation as resolved.
|
||
|
|
||
| # And done. | ||
|
|
||
| That's all she wrote. If, for some reason, you're still getting a command not recognized error or RUN_THIS.py is throwing a FileNotFoundError, go back and ensure your changes to the path variable are saved, spelling is correct, and you're pointing to the right directory. Any mistakes made here will mean you're not correctly pointing at the right location, and as such, commands will not work. If you're still having trouble, you can ask for help in the [official Space Station 14 Discord server's](https://discord.spacestation14.com) [#howdoicode](https://discord.com/channels/310555209753690112/560845886263918612) channel. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.