mirror of
https://github.com/status-im/nim-confutils.git
synced 2025-02-02 23:33:47 +00:00
Fix a build issue when confutils is used together with the memfiles module
This commit is contained in:
parent
0e42c65951
commit
c9d823f217
@ -418,7 +418,7 @@ proc parseCmdArg*(T: type InputFile, p: TaintedString): T =
|
||||
|
||||
when not defined(nimscript):
|
||||
try:
|
||||
let f = open(p.string, fmRead)
|
||||
let f = system.open(p.string, fmRead)
|
||||
close f
|
||||
except IOError:
|
||||
raise newException(ValueError, "File not accessible")
|
||||
@ -435,7 +435,7 @@ proc parseCmdArg*(T: type TypedInputFile, p: TaintedString): T =
|
||||
|
||||
when not defined(nimscript):
|
||||
try:
|
||||
let f = open(path, fmRead)
|
||||
let f = system.open(path, fmRead)
|
||||
close f
|
||||
except IOError:
|
||||
raise newException(ValueError, "File not accessible")
|
||||
|
Loading…
x
Reference in New Issue
Block a user