commit
bb0fe7ccce
|
@ -26,6 +26,7 @@ import stdx.d.ast;
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
import std.array;
|
import std.array;
|
||||||
import std.path;
|
import std.path;
|
||||||
|
import std.algorithm;
|
||||||
|
|
||||||
import acvisitor;
|
import acvisitor;
|
||||||
import actypes;
|
import actypes;
|
||||||
|
@ -57,7 +58,7 @@ struct ModuleCache
|
||||||
*/
|
*/
|
||||||
static void addImportPath(string path)
|
static void addImportPath(string path)
|
||||||
{
|
{
|
||||||
if (!exists(path))
|
if (!exists(path) || importPaths.canFind(path))
|
||||||
return;
|
return;
|
||||||
importPaths ~= path;
|
importPaths ~= path;
|
||||||
foreach (fileName; dirEntries(path, "*.{d,di}", SpanMode.depth))
|
foreach (fileName; dirEntries(path, "*.{d,di}", SpanMode.depth))
|
||||||
|
|
Loading…
Reference in New Issue