We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2ac0e commit 40a96cdCopy full SHA for 40a96cd
src/tools/pgflex
@@ -48,7 +48,7 @@ os.chdir(args.privatedir)
48
# contents. Set FLEX_TMP_DIR to the target private directory to avoid
49
# that. That environment variable isn't consulted on other platforms, so we
50
# don't even need to make this conditional.
51
-env = {'FLEX_TMP_DIR': args.privatedir}
+os.environ['FLEX_TMP_DIR'] = args.privatedir
52
53
# build flex invocation
54
command = [args.flex, '-o', args.output_file]
@@ -58,7 +58,7 @@ command += args.flex_flags
58
command += [args.input_file]
59
60
# create .c file from .l file
61
-sp = subprocess.run(command, env=env)
+sp = subprocess.run(command)
62
if sp.returncode != 0:
63
sys.exit(sp.returncode)
64
0 commit comments