I want python to open a file
Expand|Select|Wrap|Line Numbers
- sp=self.listBox1.GetStringSelection().split("-")
- new="%s-%s-%s-%s-%s" % (sp[0],sp[3],sp[2],sp[1],sp[4])
- var="%s%s.fty" % (percorsob,mnew)
- print "THIS IS VAR: ", var
- f=open(var).read()
Expand|Select|Wrap|Line Numbers
- THIS IS VAR: C:\Documents and Settings\All Users\Documenti\fatture\handle\Client2-2008-01-11-35.fty
Expand|Select|Wrap|Line Numbers
- IO Error, no such file or Directory C:\Documents and Settings\All Users\Documenti\fatture\handle\Client2-2008-01-13-35.fty
What's happening with my python?
(i don't have vars with the same name...python cannot make confusion!)