Commit eb569521 authored by kliment's avatar kliment

Merge pull request #60 from tjhowse/master

Only adds the STL filename to the listbox, not the whole path.
parents 0da65f14 47229f63
......@@ -131,10 +131,12 @@ class showstl(wx.Window):
t=time.time()
#print name
if name.lower().endswith(".stl"):
newname=name
#Filter out the path, just show the STL filename.
newname=os.path.split(name.lower())[1]
c=1
while newname in self.models:
newname=name+"(%d)"%c
newname=os.path.split(name.lower())[1]
newname=newname+"(%d)"%c
c+=1
self.models[newname]=stltool.stl(name)
self.models[newname].offsets=[0,0,0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment