Skip to content

Commit 8f34fca

Browse files
committed
new modelfix
1 parent ef42190 commit 8f34fca

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

bin/ModelFix.jar

7.26 KB
Binary file not shown.

bin/make_all_static_models

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22
# -*- coding: utf-8 -*-
33

44
from bigg2.model_dumper import make_all_static_models
5-
import sys
5+
from bigg2.server import static_model_dir as static_dir
66
from ome import settings
7+
78
import subprocess
8-
from bigg2.server import static_model_dir as static_dir
9+
import sys
10+
from os.path import join
11+
from shutil import move
12+
from tempfile import mkdtemp
913

10-
make_all_static_models()
14+
# make_all_static_models()
1115

12-
subprocess.call([settings.java, '-jar', 'ModelFix.jar', static_dir, static_dir ])
16+
# get raw out of the way
17+
tmp = mkdtemp()
18+
move(join(static_dir, 'raw'), tmp)
19+
subprocess.call([ settings.java, '-jar', 'ModelFix.jar', static_dir, static_dir ])
20+
move(join(tmp, 'raw'), static_dir)
1321

1422
sys.exit(0)

0 commit comments

Comments
 (0)