def gensif(temp, f): infile2 = os.path.dirname(os.path.abspath(__file__)) + '/csvFiles/pred.csv' fh1 = open(infile2, 'w') for k in temp: k = int(k) print >> fh1, str(k) fh1.close() gengraph.main(f)
def gensif(): infile2=os.path.dirname(os.path.abspath(__file__))+'/csvFiles/pred.csv' fh1=open(infile2,'w') for k in temp: k=int(k) print >>fh1,str(k) fh1.close() gengraph.main()