diff --git a/README.md b/README.md index ed9cb72..795b437 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ + Usage: +> use with python2 + 0. Install flex with ``` apt-get install flex```. Building without flex will fail and pollute the codebase. diff --git a/ljpeg.py b/ljpeg.py index 74ba9a7..44920f7 100755 --- a/ljpeg.py +++ b/ljpeg.py @@ -6,7 +6,9 @@ import numpy import logging -BIN = os.path.join(os.path.dirname(__file__), "jpegdir", "jpeg") +BIN = os.path.abspath( + os.path.join(os.path.dirname(__file__), "jpegdir", "jpeg") +) if not os.path.exists(BIN): print "jpeg is not built yet; use 'cd jpegdir; make' first"