diff trunk/src/cmd/ImportGraph.d @ 719:8f8c9ab3f3ba

Fixed code that finds out a modules FQN. Fixed creation of importPaths in ImportGraph.execute().
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Fri, 01 Feb 2008 15:05:26 +0100
parents bf10602159c1
children 74cdbb25c7c8
line wrap: on
line diff
--- a/trunk/src/cmd/ImportGraph.d	Fri Feb 01 14:16:50 2008 +0100
+++ b/trunk/src/cmd/ImportGraph.d	Fri Feb 01 15:05:26 2008 +0100
@@ -233,11 +233,9 @@
   // Add directory of file and global directories to import paths.
   auto filePath = new FilePath(filePathString);
   auto fileDir = filePath.folder();
-  if (fileDir.length)
-    importPaths ~= fileDir;
+  importPaths ~= fileDir;
   importPaths ~= GlobalSettings.importPaths;
 
-
   auto gbuilder = new GraphBuilder;
 
   gbuilder.importPaths = importPaths;