We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b28b6c commit 7dddd73Copy full SHA for 7dddd73
setup.cfg
@@ -27,3 +27,7 @@ python_requires = >=3.7
27
package_dir =
28
=src
29
zip_safe = no
30
+
31
+[options.entry_points]
32
+console_scripts =
33
+ campusnet = campusnet.__main__:main
src/campusnet/__main__.py
@@ -1,7 +1,8 @@
1
import campusnet
2
from argparse import ArgumentParser
3
4
-if __name__ == "__main__":
5
+def main():
6
parser = ArgumentParser(
7
prog="python -m campusnet", description="Get exams from CampusNet instance."
8
)
@@ -104,3 +105,7 @@
104
105
106
writer = csv.writer(sys.stdout)
107
writer.writerows(out)
108
109
110
+if __name__ == "__main__":
111
+ main()
0 commit comments