Globals copy to prevent size change while iterating
This commit is contained in:
parent
55138d7c87
commit
c711cf488d
1 changed files with 1 additions and 2 deletions
|
@ -150,8 +150,7 @@
|
||||||
"os.makedirs(OUT_PATH, exist_ok=True)\n",
|
"os.makedirs(OUT_PATH, exist_ok=True)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(\"User Settings:\")\n",
|
"print(\"User Settings:\")\n",
|
||||||
"g = globals()\n",
|
"for k, v in globals().copy().items():\n",
|
||||||
"for k, v in g.items():\n",
|
|
||||||
" if not k.isupper():\n",
|
" if not k.isupper():\n",
|
||||||
" continue\n",
|
" continue\n",
|
||||||
" print(f\" {k:.<40s} := {v}\")"
|
" print(f\" {k:.<40s} := {v}\")"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue