Rename main to __main__

Most commonly, the __main__.py file is used to provide a command-line
interface for a package. __main__.py will be executed when the package
itself is invoked directly from the command line using the -m flag.
This commit is contained in:
Russell Schmidt
2025-04-02 12:05:01 -05:00
parent 5999deac1a
commit 696370308f
3 changed files with 3 additions and 3 deletions

4
.vscode/launch.json vendored
View File

@@ -6,8 +6,8 @@
"type": "debugpy",
"request": "launch",
"cwd": "${workspaceFolder}",
"module": "contact.main",
"module": "contact.__main__",
"args": []
}
]
}
}

View File

@@ -21,4 +21,4 @@ requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
contact = "contact.main:start"
contact = "contact.__main__:start"