Skip to content

Commit

Permalink
Merge pull request #3 from zchen24/patch-1
Browse files Browse the repository at this point in the history
Fixed delete tmp.txt failure in Windows
  • Loading branch information
RobinDavid authored Aug 29, 2016
2 parents 397171c + 909828f commit aec16c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytesser.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def image_to_string(file,lang=None, psm=None):
process_request(file, TEMP_FILE, lang, psm) #Process command
f = open(TEMP_FILE+".txt","r") #Open back the file
txt = f.read()
f.close()
os.remove(TEMP_FILE+".txt")
return txt

Expand Down

0 comments on commit aec16c4

Please sign in to comment.