diff options
author | hardythe1 | 2014-06-17 12:55:16 +0530 |
---|---|---|
committer | hardythe1 | 2014-06-17 12:55:16 +0530 |
commit | 81b8051c334f2da986cb588f9c496626f89fbb88 (patch) | |
tree | d0caee33dc819f6e000a7fc9a3fc2cc7c9e63471 /tbc/views.py | |
parent | 7294076a0b0b47a29d5148b56e0be02c6f17e986 (diff) | |
download | Python-TBC-Interface-81b8051c334f2da986cb588f9c496626f89fbb88.tar.gz Python-TBC-Interface-81b8051c334f2da986cb588f9c496626f89fbb88.tar.bz2 Python-TBC-Interface-81b8051c334f2da986cb588f9c496626f89fbb88.zip |
modifying copy command to take book names with any special characters
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-x | tbc/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py index 0a38ea1..9bfbcc5 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -517,7 +517,7 @@ def ApproveBook(request, book_id=None): fp.write("Isbn: "+book.isbn+"\n") fp.write("Edition: "+book.edition) fp.close() - x = shutil.copytree(book_title, copy_path+book_title) + os.popen("cp -r '"+book_title+"' '"+copy_path+"'") subject = "Python-TBC: Book Completion" message = "Hi "+book.contributor.user.first_name+",\n"+\ "Congratulations !\n"+\ |