Browse Source

Also check dirs when searching for bmx path.

woollybah 7 years ago
parent
commit
e96d6c0b0f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      maxutil.mod/maxutil.bmx

+ 2 - 2
maxutil.mod/maxutil.bmx

@@ -19,9 +19,9 @@ Import Pub.StdC
 
 Function BlitzMaxPath$()
 	Global bmxpath$
-	If bmxpath Return bmxpath
+	If bmxpath And FileType(bmxpath)=FILETYPE_DIR Return bmxpath
 	Local p$=getenv_("BMXPATH")
-	If p
+	If p And FileType(p)=FILETYPE_DIR
 		bmxpath=p
 		Return p
 	EndIf