vuu10 commited on
Commit
6d1bc76
·
1 Parent(s): d0f4756

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -10,9 +10,14 @@ import sys
10
  import joblib
11
  import sys
12
 
13
- import conda.cli
14
-
15
- conda.cli.main('conda', 'install', '-c', 'conda-forge', 'openbabel', '-y')
 
 
 
 
 
16
 
17
 
18
  sys.path.append('./CC/')
 
10
  import joblib
11
  import sys
12
 
13
+ import os
14
+
15
+ try:
16
+ from openbabel import openbabel
17
+ except:
18
+ print ("openbabel not found, Installing openbabel ")
19
+ os.system("conda install -c conda-forge openbabel")
20
+ from openbabel import openbabel
21
 
22
 
23
  sys.path.append('./CC/')