mirror of
https://github.com/HongjianFang/DSurfTomo.git
synced 2025-05-05 22:31:14 +08:00
18 lines
517 B
Python
Executable File
18 lines
517 B
Python
Executable File
#!/usr/bin/env python
|
|
# this is a script to install surf_tomo and surf_tomo_syn in your system
|
|
# written by Hongjian Fang(fanghj@mail.ustc.edu.cn)
|
|
|
|
import os
|
|
if 'bin' in os.listdir('.'):
|
|
print ('Installation beginning')
|
|
else:
|
|
print ('Installation beginning')
|
|
os.mkdir('bin')
|
|
os.chdir('src')
|
|
os.system('make clean')
|
|
os.system('make')
|
|
os.system('cp DSurfTomo ../bin')
|
|
print ('--------------------------------------')
|
|
print ('DSurfTomo compiling Finished')
|
|
print ('--------------------------------------')
|