Mercurial > projects > dil
comparison 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 |
comparison
equal
deleted
inserted
replaced
718:be887ada3e3e | 719:8f8c9ab3f3ba |
---|---|
231 regexps ~= new RegExp(strRegexp); | 231 regexps ~= new RegExp(strRegexp); |
232 | 232 |
233 // Add directory of file and global directories to import paths. | 233 // Add directory of file and global directories to import paths. |
234 auto filePath = new FilePath(filePathString); | 234 auto filePath = new FilePath(filePathString); |
235 auto fileDir = filePath.folder(); | 235 auto fileDir = filePath.folder(); |
236 if (fileDir.length) | 236 importPaths ~= fileDir; |
237 importPaths ~= fileDir; | |
238 importPaths ~= GlobalSettings.importPaths; | 237 importPaths ~= GlobalSettings.importPaths; |
239 | |
240 | 238 |
241 auto gbuilder = new GraphBuilder; | 239 auto gbuilder = new GraphBuilder; |
242 | 240 |
243 gbuilder.importPaths = importPaths; | 241 gbuilder.importPaths = importPaths; |
244 gbuilder.options = options; | 242 gbuilder.options = options; |