這是本文件的舊版!


Run a script that is related to the python file path

import os
import stat
from os.path import dirname, abspath, join
 
def runCollectPrograme():
	mod_dir = dirname(__file__)
	collect_script = abspath(join(mod_dir, 'collect.sh'))
 
	print "Run script: %s" % collect_script
 
	st = os.stat(collect_script)
	os.chmod(collect_script, st.st_mode|stat.S_IEXEC)
	os.system(collect_script)