summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/enviparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/enviparser.tac')
-rw-r--r--ds9/parsers/enviparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/enviparser.tac b/ds9/parsers/enviparser.tac
index c58a9ca..27f2b03 100644
--- a/ds9/parsers/enviparser.tac
+++ b/ds9/parsers/enviparser.tac
@@ -11,7 +11,7 @@
%%
command : envi
- | envi {yyclearin; YYACCEPT} STRING_
+ | envi {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
envi : opts STRING_ {ImportENVIFile $2 [FindENVIDataFile $2]; FinishLoad}