@@ -46,9 +46,10 @@ following order:
46
46
pystepsrc file inside that directory.
47
47
- **$HOME/.pysteps/pystepsrc ** (Unix and Mac OS X) : If the system variable $HOME is defined, it looks
48
48
for the configuration file in this path.
49
- - **$USERPROFILE/pysteps/pystepsrc ** (Windows only): It looks for the configuration file
50
- in the pysteps directory located user's home directory.
51
- - Lastly, it looks inside the library in *pysteps/pystepsrc * for a
49
+ - **%USERPROFILE%\\ pysteps\\ pystepsrc ** (Windows only): It looks for the configuration file
50
+ in the pysteps directory located user's home directory (indicated by the %USERPROFILE%
51
+ system variable).
52
+ - Lastly, it looks inside the library in *pysteps\\ pystepsrc * for a
52
53
system-defined copy.
53
54
54
55
The recommended method to setup the configuration files is to edit a copy
@@ -73,15 +74,14 @@ need to create the directory if it does not exist. In a terminal, run::
73
74
74
75
$ mkdir -p ${HOME}/.pysteps
75
76
76
- The next step is to find the location of the library's pystepsrc file being
77
- actually used.
77
+ The next step is to find the location of the library's default pystepsrc file.
78
78
When we import pysteps in a python interpreter, the configuration file loaded
79
79
is shown::
80
80
81
81
import pysteps
82
82
"Pysteps configuration file found at: /path/to/pysteps/library/pystepsrc"
83
83
84
- Then we copy the library's default rc file to that directory::
84
+ Then we copy the library's default configuration file to that directory::
85
85
86
86
$ cp /path/to/pysteps/library/pystepsrc ${HOME}/.pysteps/pystepsrc
87
87
@@ -98,26 +98,36 @@ Windows
98
98
~~~~~~~
99
99
100
100
For windows users, the recommended way to customize the pySTEPS
101
- configuration is placing the pystepsrc parameters file in the users folder
101
+ configuration is placing the pystepsrc parameters file in the users' folder
102
102
(defined in the %USERPROFILE% environment variable) in the following path:
103
- **%USERPROFILE%/ pysteps/ pystepsrc **
103
+ **%USERPROFILE%\\ pysteps\\ pystepsrc **
104
104
105
- To steps to setup up the configuration file in the home directory first we
106
- need to create the directory if it does not exist. In a terminal, run::
105
+ To setup up the configuration file in the home directory first, we
106
+ need to create the directory if it does not exist. In a **windows terminal **, run::
107
+
108
+ $ mkdir %USERPROFILE%\pysteps
109
+
110
+ **Important **
111
+
112
+ It was reported that the %USERPROFILE% variable may be interpreted as an string
113
+ literal when the anaconda terminal is used.
114
+ This will result in a '%USERPROFILE%' folder being created in the current working directory
115
+ instead of the desired pysteps folder in the user's home.
116
+ If that is the case, use the explicit path to your home folder instead of `%USERPROFILE% `.
117
+ For example::
107
118
108
- $ mkdir -p %USERPROFILE% \pysteps
119
+ $ mkdir C:\Users\your_username \pysteps
109
120
110
- The next step is to find the location of the library's pystepsrc file is
111
- actually used.
121
+ The next step is to find the location of the library's default pystepsrc file.
112
122
When we import pysteps in a python interpreter, the configuration file loaded
113
123
is shown::
114
124
115
125
import pysteps
116
126
"Pysteps configuration file found at: C:\path\to\pysteps\library\pystepsrc"
117
127
118
- Then we copy the library's default rc file to that directory::
128
+ Then we copy the library's default configuration file to that directory::
119
129
120
- $ cp C:\path\to\pysteps\library\pystepsrc %USERPROFILE%\pysteps\pystepsrc
130
+ $ copy C:\path\to\pysteps\library\pystepsrc %USERPROFILE%\pysteps\pystepsrc
121
131
122
132
Edit the file with the text editor of your preference and change the default
123
133
configurations with your preferences.
0 commit comments