mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
Improved OSGeo4W import
This commit is contained in:
parent
1f960aeaac
commit
a285d9ebb0
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ else:
|
|||
# Will need to install OSGeo4W for this!
|
||||
if os.name == 'nt':
|
||||
OSGEO4W = r"C:\OSGeo4W"
|
||||
assert os.path.isdir(OSGEO4W), "Directory does not exist: " + OSGEO4W
|
||||
if not os.path.isdir(OSGEO4W):
|
||||
OSGEO4W += '64'
|
||||
os.environ['OSGEO4W_ROOT'] = OSGEO4W
|
||||
os.environ['GDAL_DATA'] = "C:\Program Files\GDAL\gdal-data"
|
||||
os.environ['PROJ_LIB'] = OSGEO4W + r"\share\proj"
|
||||
|
|
Loading…
Reference in a new issue