We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54728b4 commit 840822dCopy full SHA for 840822d
tools/submission/submission_checker/main.py
@@ -1,8 +1,6 @@
1
import argparse
2
import logging
3
import os
4
-import sys
5
-sys.path.append(os.path.dirname(os.path.dirname(__file__)))
6
7
from .constants import MODEL_CONFIG
8
from .configuration.configuration import Config
@@ -326,4 +324,8 @@ def sum_dict_values(x):
326
324
327
325
328
if __name__ == "__main__":
+ if __package__ is None:
+ import sys
329
+ sys.path.append(os.path.dirname(os.path.dirname(__file__)))
330
+ __package__ = "submission_checker"
331
main()
0 commit comments