nsthorat commited on
Commit
ed6d581
1 Parent(s): 46b3d22
Files changed (1) hide show
  1. src/server.py +3 -0
src/server.py CHANGED
@@ -14,6 +14,7 @@ from . import router_concept, router_data_loader, router_dataset, router_signal,
14
  from .config import CONFIG, data_path
15
  from .router_utils import RouteErrorHandler
16
  from .tasks import task_manager
 
17
 
18
  DIST_PATH = os.path.abspath(os.path.join('web', 'blueprint', 'build'))
19
 
@@ -56,6 +57,8 @@ app.mount('/', StaticFiles(directory=os.path.join(DIST_PATH), html=True, check_d
56
 
57
  print('data_path=', data_path(), CONFIG)
58
  print('list:', os.listdir(data_path()))
 
 
59
 
60
 
61
  def run(cmd: str) -> subprocess.CompletedProcess[bytes]:
 
14
  from .config import CONFIG, data_path
15
  from .router_utils import RouteErrorHandler
16
  from .tasks import task_manager
17
+ from .utils import get_datasets_dir
18
 
19
  DIST_PATH = os.path.abspath(os.path.join('web', 'blueprint', 'build'))
20
 
 
57
 
58
  print('data_path=', data_path(), CONFIG)
59
  print('list:', os.listdir(data_path()))
60
+ print('list 2:', os.listdir(get_datasets_dir(data_path())))
61
+ print('list 3:', os.listdir(os.path.join(get_datasets_dir(data_path())), 'local'))
62
 
63
 
64
  def run(cmd: str) -> subprocess.CompletedProcess[bytes]: