Skip to content

Commit 840822d

Browse files
authored
test commit
1 parent 54728b4 commit 840822d

File tree

1 file changed

+4
-2
lines changed
  • tools/submission/submission_checker

1 file changed

+4
-2
lines changed

tools/submission/submission_checker/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import argparse
22
import logging
33
import os
4-
import sys
5-
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
64

75
from .constants import MODEL_CONFIG
86
from .configuration.configuration import Config
@@ -326,4 +324,8 @@ def sum_dict_values(x):
326324

327325

328326
if __name__ == "__main__":
327+
if __package__ is None:
328+
import sys
329+
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
330+
__package__ = "submission_checker"
329331
main()

0 commit comments

Comments
 (0)