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

Added python 3 support and fixed small bug with picture appending #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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