diff options
Diffstat (limited to 'epan/wspython/register-dissector.py')
-rwxr-xr-x | epan/wspython/register-dissector.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/wspython/register-dissector.py b/epan/wspython/register-dissector.py index 6faab57f6f..8a983e6f3b 100755 --- a/epan/wspython/register-dissector.py +++ b/epan/wspython/register-dissector.py @@ -56,6 +56,11 @@ def register_dissectors(dir): libws = get_libws_handle() dissectors_dir = os.path.join(dir, "wspy_dissectors") + + #Check if we have the dissectors directory + if not os.path.isdir(dissectors_dir): + return [] + #append dir to be able to import python dissectors sys.path.append(dissectors_dir) |