Skip to content
Browse files

fixed issues with "path" variables, when #NoEnv is not present

  • Loading branch information...
1 parent 857a429 commit ee2abc385cf0b6dcc2166e9293171d09510c17c3 @IsNull committed
Showing with 9 additions and 9 deletions.
  1. +6 −6 Lib/SQLite_L.ahk
  2. +3 −3 Lib/mySQL.ahk
View
12 Lib/SQLite_L.ahk
@@ -864,7 +864,7 @@ SQLite_LastError(Error = "") {
; Return Value: Path to SQLite DLL
;=======================================================================================================================
-SQLite_DLLPath(path = "") {
+SQLite_DLLPath(forcedPath = "") {
static DLLPath := ""
static dllname := "SQLite3.dll"
@@ -879,8 +879,8 @@ SQLite_DLLPath(path = "") {
DLLPath := A_ScriptDir . "\Lib\" . dllpath
}
- if (path != "")
- DLLPath := Path
+ if (forcedPath != "")
+ DLLPath := forcedPath
return DLLPath
}
@@ -895,7 +895,7 @@ SQLite_DLLPath(path = "") {
; Parameter(s): Optional Path - Path for SQLite3.exe
; Return Value: Path to SQLite DLL
;=======================================================================================================================
-SQLite_EXEPath(path = "") {
+SQLite_EXEPath(forcedPath = "") {
static EXEPath := ""
if (EXEPath == ""){
@@ -904,8 +904,8 @@ SQLite_EXEPath(path = "") {
else if (FileExist(A_ScriptDir . "\Lib\SQLite3.exe"))
EXEPath := A_ScriptDir . "\Lib\SQLite3.exe"
}
- if (path != "")
- EXEPath := Path
+ if (forcedPath != "")
+ EXEPath := forcedPath
Return EXEPath
}
;=======================================================================================================================
View
6 Lib/mySQL.ahk
@@ -58,7 +58,7 @@ MySQL_StartUp(){
return hModule
}
-MySQL_DLLPath(path = "") {
+MySQL_DLLPath(forcedPath = "") {
static DLLPath := ""
static dllname := "libmySQL.dll"
@@ -73,8 +73,8 @@ MySQL_DLLPath(path = "") {
DLLPath := A_ScriptDir . "\Lib\" . dllpath
}
- if (path != "")
- DLLPath := Path
+ if (forcedPath != "")
+ DLLPath := forcedPath
return DLLPath
}

0 comments on commit ee2abc3

Please sign in to comment.
Something went wrong with that request. Please try again.