mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
12 lines
298 B
Plaintext
12 lines
298 B
Plaintext
|
#!/usr/bin/env python3
|
||
|
|
||
|
import os
|
||
|
import subprocess
|
||
|
|
||
|
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||
|
if not os.path.isfile('bin/xlnt.test'):
|
||
|
subprocess.call('./build')
|
||
|
if os.path.isdir('./bin') and os.path.isfile('./bin/xlnt.test'):
|
||
|
os.chdir('./bin')
|
||
|
subprocess.call(['./xlnt.test'])
|