diff options
Diffstat (limited to 'Modules/cgen.py')
-rw-r--r-- | Modules/cgen.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/cgen.py b/Modules/cgen.py index d6e9c96..ea46263 100644 --- a/Modules/cgen.py +++ b/Modules/cgen.py @@ -376,6 +376,11 @@ def mkobject(type, arg): return 'mknew' + type + 'object(' + arg + ')' +# Open optional file argument +if sys.argv[1:]: + sys.stdin = open(sys.argv[1], 'r') + + # Input line number lno = 0 |