Skip to content

Commit 57ee941

Browse files
authored
Update VisSimCommon.py
fix a bug related to windows! the folder is not extracted correctly!
1 parent 9b11e87 commit 57ee941

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

VisSimCommon/VisSimCommon.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ def checkVisSimTools(self,vtVars,vsExtension ):
197197
zip_ref.close()
198198
#remove the downloaded zip file
199199
os.remove(vissimZip)
200+
# moved the folder: fix bug related to windows
201+
import shutil
202+
shutil.move(os.path.join(os.path.expanduser("~/"),"VisSimToolsCochlea","VisSimTools") , os.path.join(os.path.expanduser("~/"),"VisSimTools") )
200203
print (" done! ")
201204
except Exception as e:
202205
print(" Error: can not download and extract VisSimTools ...")

0 commit comments

Comments
 (0)