# no shebang line here!
# Uses Python 2.6+
import os
dir-char = '\\'
cpath = raw_input('What is your TPT location folder?')
cpathl = list(cpath)
if cpathl[-1] != dir-char :
cpathl.append(dir-char)
cpathl.append('stamps', dir-char)
cpath = ''.join(cpathl)
fcont = os.listdir(cpath)
fcont.remove("stamps.def")
for i in xrange(0, len(fcont)-1):
fcont[i].strip('.stm')
print fcont[i]
f = open(cpath + 'stamps.def', 'w')
for i in xrange(0, len(pathcontent)-1):
f.write(fcont[i])
print repr(fcont[i]) + 'added to Stamps.def'
''' Made by boxmein 2011 '''
Looks a lil too much for me. I'd just drag/drop this and run from the directory.
#!/env/python
import os
files = os.listdir(os.getcwd())
output=''
for each in files:
if '.stm' in each:
output+=each.split('.')[0]
with open('stamps.def','w') as f:
f.write(output)
print("Done.")
It's a hidden file, try to make the hidden files appear and search for it. It can be near where you have TPT. Like the desktop or a folder where you put tpt in and other tpt stuff.