sys path
This commit is contained in:
@@ -1,11 +1,16 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import itertools
|
import itertools
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
import submitit
|
import submitit
|
||||||
|
|
||||||
|
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
||||||
|
if PROJECT_ROOT not in sys.path:
|
||||||
|
sys.path.insert(0, PROJECT_ROOT)
|
||||||
|
|
||||||
from src.train_supervised import main as app_main
|
from src.train_supervised import main as app_main
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user