diff --git a/pyproject.toml b/pyproject.toml index 4192a70f6..3b17ad013 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -89,11 +89,9 @@ webbpsf = "pytest_plugin.webbpsf_plugin" [project.scripts] roman_static_preview = "romancal.scripts.static_preview:command" okify_regtests = "romancal.scripts.okify_regtests:main" -schema_editor = "romancal.scripts.schema_editor:main" -schemadoc = "romancal.scripts.schemadoc:main" verify_install_requires = "romancal.scripts.verify_install_requires:main" -asn_from_list = "romancal.associations.asn_from_list:Main" -skycell_asn = "romancal.associations.skycell_asn:Main" +asn_from_list = "romancal.associations.asn_from_list:main" +skycell_asn = "romancal.associations.skycell_asn:main" [build-system] requires = [ diff --git a/romancal/associations/asn_from_list.py b/romancal/associations/asn_from_list.py index 03c877c71..12f6dbeb0 100644 --- a/romancal/associations/asn_from_list.py +++ b/romancal/associations/asn_from_list.py @@ -145,3 +145,7 @@ def __init__(self, args=None): ) _, serialized = asn.dump(format=parsed.format) outfile.write(serialized) + + +def main(): + Main() diff --git a/romancal/associations/skycell_asn.py b/romancal/associations/skycell_asn.py index 0502bf369..60ae57db0 100644 --- a/romancal/associations/skycell_asn.py +++ b/romancal/associations/skycell_asn.py @@ -193,6 +193,9 @@ def __init__(self, args=None): skycell_asn(self) -if __name__ == "__main__": - +def main(): Main() + + +if __name__ == "__main__": + main()