From 3d2459bdc0b6d6236a2cd9209ed81c965ee411a5 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 30 Apr 2020 20:23:42 +0200 Subject: [PATCH] fixes the regression #12860 caused; hotfix --- lib/pure/os.nim | 2 +- lib/system/nimscript.nim | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index da84df7916..b462054194 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -3119,7 +3119,7 @@ template rawToFormalFileInfo(rawInfo, path, formalInfo): untyped = assert(path != "") # symlinks can't occur for file handles formalInfo.kind = getSymlinkFileKind(path) -when defined(js): +when defined(js) or defined(nimscript): when not declared(FileHandle): type FileHandle = distinct int32 when not declared(File): diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim index e0c400f053..5b86221822 100644 --- a/lib/system/nimscript.nim +++ b/lib/system/nimscript.nim @@ -272,6 +272,9 @@ proc selfExec*(command: string) {. raise newException(OSError, "FAILED: " & c) checkOsError() +from os import paramCount, paramStr +export paramCount, paramStr + proc put*(key, value: string) = ## Sets a configuration 'key' like 'gcc.options.always' to its value. builtin