From f006bf7f735a6bb084dfb6d3a6f58084e9c495b1 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 10 Aug 2019 21:49:17 -0400 Subject: [PATCH] typo --- string_compiler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/string_compiler.py b/string_compiler.py index 36f9610..851b3a9 100644 --- a/string_compiler.py +++ b/string_compiler.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import getopt import sys import re @@ -204,7 +206,7 @@ def read_cpp(infile): x = subprocess.run(args, stdout=subprocess.PIPE, encoding='ascii') if x.returncode: - sys.exit(s.returncode) + sys.exit(x.returncode) lines = x.stdout.split("\n") return read_data(lines, "")