freddypyther
Programmer
Hi there!! I'm new to this forum, nice to join here with you!
I'm trying to get a .exe of a simple program I've done:
(renaming.py):
import os
top=raw_input("directorio: ")
def getNewName(name):
return name.lower()
for root, dirs, files in os.walk(top, topdown=False):
for name in files:
try:
os.rename(os.path.sep.join((root,name)),os.path.sep.join((root,getNewName(name))))
except:
print "ha habido algun error con fichero: ",
print os.path.sep.join((root,name))+"->"+os.path.sep.join((root,getNewName(name)))
for name in dirs:
try:
os.rename(os.path.sep.join((root,name)),os.path.sep.join((root,getNewName(name))))
except:
print "ha habido algun error con directorio: ",
print os.path.sep.join((root,name))+"->"+os.path.sep.join((root,getNewName(name)))
I'm following all the steps on the tutorial of but I get an error on the step with the command $ python setup.py py2exe :
It says that doesn't recognize C:\Python25\lib\site-packages\py2exe\py2exe_util.pyd like a valid windows image. I'm trying to solve it for more than a month asking in different forums and I haven't got it. So if you knew what could I do I'll be so grateful. If not, I'll be so grateful is someone know how to do it and pass me the final renaming.exe because I'm getting desperate with this stuff.
Thanks you very much!!!
I'm trying to get a .exe of a simple program I've done:
(renaming.py):
import os
top=raw_input("directorio: ")
def getNewName(name):
return name.lower()
for root, dirs, files in os.walk(top, topdown=False):
for name in files:
try:
os.rename(os.path.sep.join((root,name)),os.path.sep.join((root,getNewName(name))))
except:
print "ha habido algun error con fichero: ",
print os.path.sep.join((root,name))+"->"+os.path.sep.join((root,getNewName(name)))
for name in dirs:
try:
os.rename(os.path.sep.join((root,name)),os.path.sep.join((root,getNewName(name))))
except:
print "ha habido algun error con directorio: ",
print os.path.sep.join((root,name))+"->"+os.path.sep.join((root,getNewName(name)))
I'm following all the steps on the tutorial of but I get an error on the step with the command $ python setup.py py2exe :
It says that doesn't recognize C:\Python25\lib\site-packages\py2exe\py2exe_util.pyd like a valid windows image. I'm trying to solve it for more than a month asking in different forums and I haven't got it. So if you knew what could I do I'll be so grateful. If not, I'll be so grateful is someone know how to do it and pass me the final renaming.exe because I'm getting desperate with this stuff.
Thanks you very much!!!