Go to the documentation of this file.00001 
00002 import os,sys
00003 from optparse import OptionParser
00004 
00005 if __name__ == '__main__':
00006     parser = OptionParser()
00007     parser.add_option('--file','-f',action='store',type='string',dest='file',default=None,help='set absolute path for executive file')
00008     (options, args) = parser.parse_args()
00009     if options.file is None:
00010         print 'please set file path'
00011     else:
00012         os.chdir(os.path.dirname(options.file))
00013         os.system("python " + os.path.basename(options.file))
00014