Skip to content

Commit ccbf7f0

Browse files
committed
[CHORE] Added a condition to quit if script ran on windows
1 parent 731745c commit ccbf7f0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

42PyChecker.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
"""
55
import os
66
import argparse
7+
import platform
78
from PyChecker.projects import libft, ft_commandements, other
89
# @todo: Add verbose output
9-
# @todo: Add command line output when ran on --no-gui
10-
1110

1211
def print_header():
1312
print("\t42PyChecker Copyright (C) 2018-present Jules Lasne "
@@ -86,4 +85,7 @@ def main():
8685

8786

8887
if __name__ == '__main__':
89-
main()
88+
if not platform.system() == "Windows":
89+
main()
90+
else:
91+
raise OSError("Sorry, this script can't be run on windows !")

0 commit comments

Comments
 (0)