-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
22 lines (20 loc) · 1.03 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from resolvers.file_steps_array_loader_resolver import FileStepsArrayLoaderResolver
from resolvers.file_type_resolver import FileTypeResolver
from services.business_logic.path_finder_algorithm import PathFinderAlgorithm
from services.path_finder_service import PathFinderService
from validators.file_validator import FileValidator
from validators.steps_array_validator import StepsArrayValidator
path_finder_service = PathFinderService(FileValidator,
StepsArrayValidator,
FileTypeResolver,
FileStepsArrayLoaderResolver(),
PathFinderAlgorithm)
if __name__ == '__main__':
user_input = input("Please enter full file path to CVS, TSV or Json files: ")
while not user_input:
print("No path was entered!")
user_input = input("Please enter full file path to CVS, TSV or Json files: ")
if path_finder_service.find(user_input):
exit(0)
else:
exit(1)