Add entry point in root dir
This commit is contained in:
parent
0b4790adaa
commit
ea485e001e
7 changed files with 22 additions and 7 deletions
15
launch_automate.py
Executable file
15
launch_automate.py
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
"""Automate - Mathématiques pour l'informatique
|
||||
|
||||
Program entry point - This is the file to launch
|
||||
"""
|
||||
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.path.append(str(pathlib.Path(__file__).parent.absolute()))
|
||||
from src.main import main
|
||||
main()
|
0
src/__init__.py
Normal file
0
src/__init__.py
Normal file
4
src/automate_class.py
Executable file → Normal file
4
src/automate_class.py
Executable file → Normal file
|
@ -5,8 +5,8 @@
|
|||
import os
|
||||
from pprint import pprint
|
||||
|
||||
import read_automate
|
||||
import transition_table
|
||||
from src import read_automate
|
||||
from src import transition_table
|
||||
|
||||
|
||||
def example() -> None:
|
||||
|
|
4
src/build_latex_graphs.py
Executable file → Normal file
4
src/build_latex_graphs.py
Executable file → Normal file
|
@ -4,8 +4,8 @@
|
|||
|
||||
import os
|
||||
|
||||
import read_automate
|
||||
from automate_class import Automate
|
||||
from src import read_automate
|
||||
from src.automate_class import Automate
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
|
4
src/main.py
Executable file → Normal file
4
src/main.py
Executable file → Normal file
|
@ -5,8 +5,8 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
import automate_class
|
||||
import read_automate
|
||||
from src import automate_class
|
||||
from src import read_automate
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
|
0
src/read_automate.py
Executable file → Normal file
0
src/read_automate.py
Executable file → Normal file
2
src/transition_table.py
Executable file → Normal file
2
src/transition_table.py
Executable file → Normal file
|
@ -4,7 +4,7 @@
|
|||
|
||||
import os
|
||||
|
||||
import read_automate
|
||||
from src import read_automate
|
||||
|
||||
|
||||
def example() -> None:
|
||||
|
|
Loading…
Reference in a new issue