Commit 581aa6b9 by devttys0

Made modification of sys.path dependant on pyqtgraph import error

parent d4a88b6d
...@@ -3,7 +3,11 @@ __all__ = ['Modules', 'ModuleException'] ...@@ -3,7 +3,11 @@ __all__ = ['Modules', 'ModuleException']
import sys import sys
import binwalk.core.common import binwalk.core.common
# This allows importing of the built-in pyqtgraph # This allows importing of the built-in pyqtgraph if it
sys.path.append(binwalk.core.common.get_libs_path()) # is not available on the system at run time.
try:
import pyqtgraph
except ImportError:
sys.path.append(binwalk.core.common.get_libs_path())
from binwalk.core.module import Modules, ModuleException from binwalk.core.module import Modules, ModuleException
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment