aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wspython/register-dissector.py
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-07-17 17:56:42 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-07-17 17:56:42 +0000
commit23142d46bca6218ee1ed337dce643f13c649fe51 (patch)
tree909460fc58522018b074e9e2a11d5b30a2acd866 /epan/wspython/register-dissector.py
parent155ac876de0ef1059c17e296c806f8e3c8ff01bb (diff)
Check for a valid wspy_dissectors disectory to avoid a warning if missing.
svn path=/trunk/; revision=38070
Diffstat (limited to 'epan/wspython/register-dissector.py')
-rwxr-xr-xepan/wspython/register-dissector.py5
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)