File: add-sys-path-append

package info (click to toggle)
wfuzz 3.1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,648 kB
  • sloc: python: 13,161; makefile: 59; sh: 4
file content (23 lines) | stat: -rw-r--r-- 631 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Debian Security Tools <team+pkg-security@tracker.debian.org>
Date: Thu, 6 Feb 2020 11:34:12 +0100
Subject: Add sys.path information to wfuzz.py.

Add sys.path.append to the main script to make it look
under /usr/share/wfuzz/ for the rest of the modules it
needs.
---
 src/wfuzz/wfuzz.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/wfuzz/wfuzz.py b/src/wfuzz/wfuzz.py
index d6e1b5a..27e69c0 100644
--- a/src/wfuzz/wfuzz.py
+++ b/src/wfuzz/wfuzz.py
@@ -1,6 +1,7 @@
 #!/usr/bin/env python3
 import sys
 import warnings
+sys.path.insert(0, "/usr/share/wfuzz/")
 
 from .core import Fuzzer
 from .facade import Facade