Skip to content

Commit

Permalink
Use Python path manipulation rather than symlink (issue #151)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjd committed Nov 23, 2023
1 parent cab054c commit 085ece1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions tools/idna-data
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

import argparse, collections, datetime, os, re, sys, unicodedata
from urllib.request import urlopen

# Use intranges.intranges_from_list() from the sibling idna directory
sys.path.append(
os.path.join(
os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
"idna"
)
)
from intranges import intranges_from_list

if sys.version_info[0] < 3:
Expand Down
1 change: 0 additions & 1 deletion tools/intranges.py

This file was deleted.

0 comments on commit 085ece1

Please sign in to comment.