constants to settings.py
This commit is contained in:
@@ -2,7 +2,8 @@ import os, shutil, platform
|
|||||||
import zipfile, rarfile
|
import zipfile, rarfile
|
||||||
from py7zr import SevenZipFile, exceptions
|
from py7zr import SevenZipFile, exceptions
|
||||||
|
|
||||||
BAD_DIR_NAME = '__BAD__'
|
from utils.settings import BAD_DIR_NAME
|
||||||
|
|
||||||
|
|
||||||
def mark_file_as_BAD(file: str, bad_exception: Exception) -> None:
|
def mark_file_as_BAD(file: str, bad_exception: Exception) -> None:
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import os, shutil, re
|
import os, shutil, re
|
||||||
from utils.extractor import extract_file_to_dir
|
from utils.extractor import extract_file_to_dir
|
||||||
|
from utils.settings import BAD_DIR_NAME
|
||||||
BAD_DIR_NAME = '__BAD__'
|
|
||||||
|
|
||||||
|
|
||||||
def validate_gradebook_dir_name(src_dir: str) -> None:
|
def validate_gradebook_dir_name(src_dir: str) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user