This allows spaces in imports, by using the following syntax: * `import "directory with spaces" / subdir / file`, or * `import "directory with spaces/subdir/file"`
This commit is contained in:
parent
81e5a35d56
commit
fa058773db
3 changed files with 5 additions and 1 deletions
|
|
@ -114,7 +114,6 @@ proc getModuleName*(conf: ConfigRef; n: PNode): string =
|
|||
try:
|
||||
result =
|
||||
pathSubs(conf, n.strVal, toFullPath(conf, n.info).splitFile().dir)
|
||||
.replace(" ")
|
||||
except ValueError:
|
||||
localError(conf, n.info, "invalid path: " & n.strVal)
|
||||
result = n.strVal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue