From 32f90fa85898a465d7e01f583345a1cf7f8317a6 Mon Sep 17 00:00:00 2001 From: Vindaar Date: Fri, 9 Feb 2024 15:55:26 +0100 Subject: [PATCH] [TikZ] only import envvars from Nim 2.0 onwards --- src/ginger/backendTikZ.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ginger/backendTikZ.nim b/src/ginger/backendTikZ.nim index b1c47bd..f667b42 100644 --- a/src/ginger/backendTikZ.nim +++ b/src/ginger/backendTikZ.nim @@ -257,7 +257,10 @@ import std/[tables, strscans] var cacheTab = initTable[(string, Font), (float, float, float)]() import latexdsl / tex_daemon var Daemon: TeXDaemon -import std / [envvars] +when (NimMajor, NimMinor, NimPatch) >= (2, 0, 0): + import std / [envvars] +else: + import std / os var DebugTexDaemon = getEnv("DEBUG_TEX", "false").parseBool ## The following CT and RT variables decide if we escape LaTeX snippets for the