Skip to content

Commit 825c497

Browse files
authored
Merge pull request #4 from dave3d/SetDictLocation
set path to dictionary
2 parents 3d189cd + c8234a0 commit 825c497

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

codespell.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ def add_dict(enchant_dict, filename):
195195
args = parse_args()
196196
# print(args)
197197

198-
sitk_dict = DictWithPWL('en_US', 'additional_dictionary.txt')
198+
thisdir = os.path.dirname(os.path.abspath(__file__))
199+
200+
sitk_dict = DictWithPWL('en_US', thisdir+'/additional_dictionary.txt')
199201

200202
if args.dict is not None:
201203
for d in args.dict:

0 commit comments

Comments
 (0)