mokelly/pytesser

Changing working directory makes calls to pytesser fail

Opened this issue · 5 comments

What steps will reproduce the problem?
1. import pytesser
2. os.chdir([...])
3. call any pytesser function

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
0.0.1

Please provide any additional information below.


Original issue reported on code.google.com by mjtoke...@gmail.com on 21 May 2007 at 3:44

Original comment by moke...@gmail.com on 27 May 2007 at 4:21

  • Changed state: Accepted
i meet the same problem when i use activepython inter. windows to test and
chdir . then popup up error;

Original comment by gaeco...@gmail.com on 8 May 2009 at 3:28

Here is the patch. Just open pytesser.py and change line 13:

tesseract_exe_name = os.path.abspath(os.path.dirname(__file__) + 
'/tesseract.exe' )

Will work smoothly.

Original comment by biu.dantas on 6 Jan 2011 at 12:32

Remember to import os...

Original comment by dmsa...@gmail.com on 14 Jun 2012 at 10:43

Man u made my day. I am working to fix the issue from 11 continuous hrs.... 
Thanks a lot... @biu.dantas

Original comment by anudeep....@gmail.com on 5 Jun 2013 at 6:12