Browse Source

[doc] work around problem with empty class paths

Simon Krajewski 5 years ago
parent
commit
dbe49fa69c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      extra/ImportAll.hx

+ 1 - 1
extra/ImportAll.hx

@@ -73,7 +73,7 @@ class ImportAll {
 		case "tools", "build-tool", "jar-tool": return;
 		case "tools", "build-tool", "jar-tool": return;
 		}
 		}
 		for( p in Context.getClassPath() ) {
 		for( p in Context.getClassPath() ) {
-			if( p == "/" )
+			if( p == "/" || p == "" )
 				continue;
 				continue;
 			// skip if we have a classpath to haxe
 			// skip if we have a classpath to haxe
 			if( pack.length == 0 && sys.FileSystem.exists(p+"std") )
 			if( pack.length == 0 && sys.FileSystem.exists(p+"std") )