yourusername commited on
Commit
ffaa7ef
·
1 Parent(s): 1273573

:construction: wip

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py CHANGED
@@ -1,4 +1,22 @@
1
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  st.write('Using submodule pixray')
3
  import os
4
  st.write(os.listdir('.'))
 
1
  import streamlit as st
2
+
3
+ import sys
4
+ from subprocess import call
5
+ from pathlib import Path
6
+
7
+
8
+ def run_cmd(command):
9
+ try:
10
+ print(command)
11
+ call(command, shell=True)
12
+ except KeyboardInterrupt:
13
+ print("Process interrupted")
14
+ sys.exit(1)
15
+
16
+ run_cmd('git submodule update --init --recursive')
17
+ run_cmd('python diffvg/setup.py install')
18
+
19
+
20
  st.write('Using submodule pixray')
21
  import os
22
  st.write(os.listdir('.'))