Don't use os for Standalone (#15944)
This commit is contained in:
parent
83432aecfc
commit
1fdfa234d7
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ import std/private/since
|
||||||
import
|
import
|
||||||
hashes, strutils
|
hashes, strutils
|
||||||
|
|
||||||
when defined(js) or defined(nimscript):
|
when defined(js) or defined(nimscript) or defined(Standalone):
|
||||||
{.pragma: rtlFunc.}
|
{.pragma: rtlFunc.}
|
||||||
else:
|
else:
|
||||||
{.pragma: rtlFunc, rtl.}
|
{.pragma: rtlFunc, rtl.}
|
||||||
|
|
@ -301,7 +301,7 @@ proc raiseFormatException(s: string) =
|
||||||
proc getValue(t: StringTableRef, flags: set[FormatFlag], key: string): string =
|
proc getValue(t: StringTableRef, flags: set[FormatFlag], key: string): string =
|
||||||
if hasKey(t, key): return t.getOrDefault(key)
|
if hasKey(t, key): return t.getOrDefault(key)
|
||||||
# hm difficult: assume safety in taint mode here. XXX This is dangerous!
|
# hm difficult: assume safety in taint mode here. XXX This is dangerous!
|
||||||
when defined(js) or defined(nimscript):
|
when defined(js) or defined(nimscript) or defined(Standalone):
|
||||||
result = ""
|
result = ""
|
||||||
else:
|
else:
|
||||||
if useEnvironment in flags: result = getEnv(key).string
|
if useEnvironment in flags: result = getEnv(key).string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue