diff --git a/src/irpf90_indent.py b/src/irpf90_indent.py index 8faaf89..f715856 100755 --- a/src/irpf90_indent.py +++ b/src/irpf90_indent.py @@ -26,10 +26,21 @@ import sys +import os import re LENMAX = 70 tabn = 2 + +#copy of locals without "import copy" +locals_ = {x: y for x, y in locals().items()} +for key, value in locals_.items(): + try: + val = os.environ["IRPF90_INDENT_"+key.upper()] + locals()[key] = type(locals_[key])(val) + except: + pass + tab = " "*tabn class Grep(object):