Add package_tools module for exporter

This commit is contained in:
arofarn
2021-06-28 13:50:17 +02:00
parent 0a7ed162d7
commit adaf8b11b9
3 changed files with 119 additions and 50 deletions

View File

@ -3,12 +3,10 @@
#
# SPDX-License-Identifier: BSD-3-Clause
import umetpy.constants
import umetpy.constants as mpconsts
# pylint: disable=eval-used
print("List of all constants:\n")
for cst in dir(umetpy.constants):
for cst in dir(mpconsts):
if cst[0] != "_":
print(
"{:25s} = {:f}".format(cst, eval("{}.{}".format("umetpy.constants", cst)))
)
print("{:30s} = {:.12f}".format(cst, eval("{}.{}".format("mpconsts", cst))))