Skip to content

Commit

Permalink
Use Python path manipulation rather than symlink (issue #151) (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjd committed Nov 23, 2023
1 parent 3981913 commit a8cdc4f
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
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 a8cdc4f

Please sign in to comment.