mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-28 11:37:51 +08:00
10 lines
312 B
Python
10 lines
312 B
Python
import os
|
|
try:
|
|
import SimPEG
|
|
except ImportError, e:
|
|
os.system('git clone https://github.com/simpeg/simpeg.git')
|
|
os.system('mv simpeg/SimPEG temp')
|
|
os.system('rm -rf simpeg')
|
|
os.system('mv temp SimPEG')
|
|
os.system('echo export PYTHONPATH=$PYTHONPATH:'+os.path.abspath('.')+' >> ~/.bashrc')
|