Skip to content

Commit

Permalink
specify homoglyphs directory
Browse files Browse the repository at this point in the history
  • Loading branch information
yamatt committed May 1, 2022
1 parent 8d3e36a commit ac8d554
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
python-version: "3.9"
- name: Generate confusables
run: python3 generate.py
run: python3 generate.py homoglyphs_fork
- name: Create Pull Request for changes
uses: peter-evans/create-pull-request@v3
with:
Expand Down
7 changes: 6 additions & 1 deletion generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@
from urllib.request import urlopen
import json
from pathlib import Path
import sys

try:
homoglyphs_dir = sys.argv[1]
except:
homoglyphs_dir = "homoglyphs"

path = Path('homoglyphs')
path = Path(homoglyphs_dir)


def generate_categories():
Expand Down

0 comments on commit ac8d554

Please sign in to comment.