10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-10-30 10:48:15 +01:00

Merge branch 'set_parameters' into 'master'

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

See merge request scemama/irpf90!25
This commit is contained in:
Anthony Scemama 2022-11-28 08:07:00 +00:00
commit 0007f72f67

View File

@ -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):