forked from osmocom/wireshark
Check for a valid wspy_dissectors disectory to avoid a warning if missing.
svn path=/trunk/; revision=38070
This commit is contained in:
parent
155ac876de
commit
23142d46bc
|
@ -56,6 +56,11 @@ def register_dissectors(dir):
|
||||||
libws = get_libws_handle()
|
libws = get_libws_handle()
|
||||||
|
|
||||||
dissectors_dir = os.path.join(dir, "wspy_dissectors")
|
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
|
#append dir to be able to import python dissectors
|
||||||
sys.path.append(dissectors_dir)
|
sys.path.append(dissectors_dir)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue