-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
33 lines (26 loc) · 924 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
from os import system
from os.path import isdir, dirname, realpath
from lib.MMRS import MapModRepoScanner
scriptPath = dirname(realpath(__file__))
def clear_console():
if os.name == "nt":
system("cls")
else:
system("clear")
if __name__ == "__main__":
while True:
clear_console()
print("Enter your repo path. Must be on your drive! URL is not supported.")
print("Leave empty to use folder I'm inside of.\n")
repoPath = str(input("Repo Path-> "))
if not repoPath:
repoPath = scriptPath
if not isdir(repoPath):
print("Invalid repo path! Press enter to retry.")
input()
continue
if MapModRepoScanner(repoPath).valid_repo():
print("Your repo appears to be valid.")
print("Still have issues? Ask for help!")
input("Press enter to continue.")