Update util.py
Browse files
util.py
CHANGED
|
@@ -13,6 +13,9 @@ def get_questions(file_path, level):
|
|
| 13 |
|
| 14 |
return result
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
def read_file(file_path):
|
| 17 |
ext = os.path.splitext(file_path)[1].lower()
|
| 18 |
|
|
|
|
| 13 |
|
| 14 |
return result
|
| 15 |
|
| 16 |
+
def is_ext(file_path, ext):
|
| 17 |
+
return os.path.splitext(file_path)[1].lower() == ext.lower()
|
| 18 |
+
|
| 19 |
def read_file(file_path):
|
| 20 |
ext = os.path.splitext(file_path)[1].lower()
|
| 21 |
|