← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 740: Fix an error when saving a project when there is no /user/Desktop folder.

 

------------------------------------------------------------
revno: 740
fixes bug: https://launchpad.net/bugs/1176463
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Tue 2013-07-02 20:55:18 +0100
message:
  Fix an error when saving a project when there is no /user/Desktop folder.
modified:
  openshot/classes/save_project.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/classes/save_project.py'
--- openshot/classes/save_project.py	2012-09-07 20:37:38 +0000
+++ openshot/classes/save_project.py	2013-07-02 19:55:18 +0000
@@ -28,7 +28,7 @@
 	# create thumbnail folder (if it doesn't exist)
 	if os.path.exists(os.path.join(project_object.folder, "thumbnail")) == False:
 		# create new thumbnail folder
-		os.mkdir(os.path.join(project_object.folder, "thumbnail"))
+		os.makedirs(os.path.join(project_object.folder, "thumbnail"))
 
 	# copy all temp thumbnails to this project's folder (if it's different)
 	if project.USER_DIR != project_object.folder: