Skip to content
This repository was archived by the owner on Jan 12, 2018. It is now read-only.

Conversation

@abakar
Copy link

@abakar abakar commented Jun 8, 2014

Hi! Thanks for great work! It saved my time!

I've added python 3 support and fix bug with picture appending: picname variable contains full path to picture, but in some cases we use it as name of file (not path). For example, we had
shutil.copyfile(picname, join(media_dir, picname))
media_dir can contain something like 'PROJECT_DIR/media/'
picname can contain something like 'PROJECT_DIR/some_another_dir/1.jpg'
os.path.join(media_dir, picname) will return 'PROJECT_DIR/some_another_dir/1.jpg', but it's not what we need!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant