Use absolute rather than relative "up-the-ladder" imports.
This eases the problem of running the unittests via the command line with "python -m unittest discover -s /start/path". #53
This commit is contained in:
parent
22450ddd55
commit
bc08757977
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ import warnings
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
from ..lib import openjp2 as opj2
|
from glymur.lib import openjp2 as opj2
|
||||||
|
|
||||||
# Need some combination of matplotlib, PIL, or scikits-image for reading
|
# Need some combination of matplotlib, PIL, or scikits-image for reading
|
||||||
# other image formats.
|
# other image formats.
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import warnings
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from ..lib import openjp2 as opj2
|
from glymur.lib import openjp2 as opj2
|
||||||
|
|
||||||
# Need some combination of matplotlib, PIL, or scikits-image for reading
|
# Need some combination of matplotlib, PIL, or scikits-image for reading
|
||||||
# other image formats.
|
# other image formats.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue