Skip to content

Commit

Permalink
feat(#291): Reorganized utility
Browse files Browse the repository at this point in the history
  • Loading branch information
lxgr-linux committed Jul 14, 2024
1 parent 99893bc commit 4ab1bd6
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

from util import gen_wiki, prepare_after, prepare_before, make_release, \
from util.utility import gen_wiki, prepare_after, prepare_before, make_release, \
install, wiki
from util.command import RootCommand, Command, not_enough_args, not_found

Expand Down
4 changes: 0 additions & 4 deletions util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
from .wiki import gen as gen_wiki
from .pages import prepare_after, prepare_before
from .release import main as make_release
from .install import install
from .liner import liner, hard_liner
from .versions import sort_vers
4 changes: 4 additions & 0 deletions util/utility/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .wiki import gen as gen_wiki
from .pages import prepare_after, prepare_before
from .release import main as make_release
from .install import install
2 changes: 1 addition & 1 deletion util/install.py → util/utility/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ def install(ex: str, options: list[str],
sys.exit(2)
else:
dest = options[0]
print(os.popen(f'sh -c "./util/install.sh {dest}"').read())
print(os.popen(f'sh -c "./util/utility/install.sh {dest}"').read())
File renamed without changes.
2 changes: 1 addition & 1 deletion util/pages.py → util/utility/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import json
from urllib import request

from util.wiki import Wiki
from .wiki import Wiki

"""
The files dictionary specifies how and which files should be processed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .changelog import write_changelog
from .appimage import write_appimage
from .release_py import write_release_py
from ..command import not_enough_args
from util.command import not_enough_args

TAG_REGEX = r"^v([0-9]+)\.([0-9]+)\.([0-9]+)(-[0-9A-Za-z-]+)?$"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion util/wiki.py → util/utility/wiki.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"""This script generates the Pokete wiki"""
import os
from os.path import exists, isdir
import sys
import scrap_engine as se
import release
from pokete_classes.effects import effects, effect_list
Expand Down

0 comments on commit 4ab1bd6

Please sign in to comment.