Skip to content

Commit 6606c5e

Browse files
committed
add version switching to readme
1 parent 26504bf commit 6606c5e

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,36 @@ except GeosupportError as e:
161161
print(e.result['List of Street Names']) # List of suggested alternate names
162162
```
163163

164+
#### Switching Between Multiple Versions of Geosupport
165+
166+
<span style="color:red">**This feature is Windows only. Linux doesn't support
167+
library path modifications during runtime.**</span>
168+
169+
If you have multiple versions of geosupport and want to switch between them,
170+
you can either pass the installation path to `Geosupport`:
171+
172+
```python
173+
g = Geosupport(geosupport_path="C:\\Program Files\\Geosupport 18C")
174+
```
175+
176+
or create a `.python-geosupport.cfg` in your home directory that specifies
177+
the names and installation paths of the different versions.
178+
179+
The `.python-geosupport.cfg` file looks like:
180+
181+
```txt
182+
[versions]
183+
18b=C:\Program Files\Geosupport Desktop Edition
184+
18c=C:\Program Files\Geosupport 18C
185+
18c_32=C:\Program Files (x86)\Geosupport 18C
186+
```
187+
188+
Then you can select the version by name:
189+
190+
```python
191+
g = Geosupport(geosupport_version="18c")
192+
```
193+
164194
## Development
165195

166196
### Running tests

0 commit comments

Comments
 (0)