Skip to content

Commit

Permalink
fix relative file open (#57)
Browse files Browse the repository at this point in the history
fix #56
  • Loading branch information
noraj authored Dec 5, 2022
1 parent b02dad5 commit 213dac4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clairvoyance/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import logging
import sys
import os
from typing import Dict, List, Optional

from clairvoyance import graphql, oracle
Expand Down Expand Up @@ -30,7 +31,8 @@ def setup_context(


def load_default_wordlist() -> List[str]:
with open('clairvoyance/wordlist.txt', 'r', encoding='utf-8') as f:
wl = os.path.join(os.path.dirname(__file__), 'wordlist.txt')
with open(wl, 'r', encoding='utf-8') as f:
return [w.strip() for w in f.readlines() if w.strip()]


Expand Down

0 comments on commit 213dac4

Please sign in to comment.