diff options
Diffstat (limited to 'compiler')
-rwxr-xr-x | compiler/nimrod.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim index a28f8a965..a8a273cc4 100755 --- a/compiler/nimrod.nim +++ b/compiler/nimrod.nim @@ -66,7 +66,11 @@ proc HandleCmdLine() = var filename = "" ProcessCmdLine(passCmd1, command, filename) if filename != "": - var fullPath = expandFilename(filename) + var fullpath: string + try: + fullPath = expandFilename(filename) + except EOS: + fullpath = filename var p = splitFile(fullPath) options.projectPath = p.dir options.projectName = p.name |