Skip to content

Commit cecfb51

Browse files
committed
Merge branch 'main' of https://github.com/Scriptbash/QRaven into main
2 parents ae72289 + d35d9fe commit cecfb51

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

qraven/metadata.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
name=QRaven
77
qgisMinimumVersion=3.20
88
description=A QGIS plugin to help generate input files for Raven
9-
version=2.1.0
9+
version=2.1.1
1010
author=Francis Lapointe
1111
email=francis.lapointe5@usherbrooke.ca
1212

qraven/qraven.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ def getRVHparams(self):
16101610
poisource = self.dlg.combo_poisource.currentText() #Get the source field of the point of interest
16111611

16121612
if self.dlg.chk_epsgcode.isChecked(): #Get the EPSG code if the checkbox is checkedm
1613-
epsgcode = self.dlg.txt_epsgcode.text()
1613+
epsgcode = 'EPSG:'+self.dlg.txt_epsgcode.text()
16141614
else: #Otherwise use the default value of BasinMaker
16151615
epsgcode = 'EPSG:3573'
16161616

@@ -1819,8 +1819,6 @@ def dockerinit(self):
18191819
18201820
getDockerResults()
18211821
'''
1822-
if computerOS == 'windows':
1823-
os.environ["PATH"] = "C:\\Program Files\\Docker\\Docker\\resources\\bin"
18241822
pythonConsole = self.iface.mainWindow().findChild(QDockWidget, 'PythonConsole')
18251823
if not pythonConsole or not pythonConsole.isVisible(): #If the python console is closed, open it
18261824
self.iface.actionShowPythonDialog().trigger() #It allows the user to see the BasinMaker progress
@@ -1997,7 +1995,7 @@ def dockerCommand(self,cmd):
19971995
'''Executes the command it receives with subprocess.Popen
19981996
19991997
param cmd: The command to run (string or tuple)
2000-
'''
1998+
'''
20011999
if computerOS == 'windows':
20022000
startupinfo = subprocess.STARTUPINFO()
20032001
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
@@ -2284,6 +2282,7 @@ def checkOS():
22842282
elif platform == "darwin":
22852283
return "macos", "/"
22862284
elif platform == "win32":
2285+
os.environ["PATH"] = "C:\\Program Files\\Docker\\Docker\\resources\\bin" #This is needed so that the docker commands work on Windows
22872286
return "windows", "\\"
22882287

22892288
computerOS, separator = checkOS()

0 commit comments

Comments
 (0)