Skip to content

Commit

Permalink
[TikZ] only import envvars from Nim 2.0 onwards
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Feb 9, 2024
1 parent 7aa59db commit 32f90fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ginger/backendTikZ.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32f90fa

Please sign in to comment.