10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-22 12:23:32 +01:00

Draft: I need to setup my params differently. This is one idea but it requires extra import

This commit is contained in:
Otto Kohulak 2022-10-20 15:53:38 +02:00
parent 088c6fdc04
commit 152c69c754

View File

@ -26,10 +26,21 @@
import sys import sys
import os
import re import re
LENMAX = 70 LENMAX = 70
tabn = 2 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 tab = " "*tabn
class Grep(object): class Grep(object):