@@ -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
22892288computerOS , separator = checkOS ()
0 commit comments