Skip to content

Commit a8cdc4f

Browse files
authored
Use Python path manipulation rather than symlink (issue #151) (#154)
1 parent 3981913 commit a8cdc4f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tools/idna-data

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
import argparse, collections, datetime, os, re, sys, unicodedata
44
from urllib.request import urlopen
5+
6+
# Use intranges.intranges_from_list() from the sibling idna directory
7+
sys.path.append(
8+
os.path.join(
9+
os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
10+
"idna"
11+
)
12+
)
513
from intranges import intranges_from_list
614

715
if sys.version_info[0] < 3:

tools/intranges.py

-1
This file was deleted.

0 commit comments

Comments
 (0)