summaryrefslogtreecommitdiff
blob: ac38942b52e5f808d3a106339d2c606841c16864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
http://hg.secdev.org/scapy/rev/443b35c8c6de

Fixed startup config file reading problem when scapy is used as a library

--- scapy.py.orig	2008-01-30 19:47:55.000000000 +0300
+++ scapy.py	2008-01-30 19:48:42.000000000 +0300
@@ -12190,4 +12190,5 @@
 if __name__ == "__main__":
     interact()
 else:
-    read_config_file(DEFAULT_CONFIG_FILE)
+    if DEFAULT_CONFIG_FILE:
+        read_config_file(DEFAULT_CONFIG_FILE)