Skip to content

Commit

Permalink
0.8.11
Browse files Browse the repository at this point in the history
  • Loading branch information
EcmaXp committed Feb 25, 2024
1 parent f01fa5a commit c424482
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "reloader.py"
version = "0.8.10"
version = "0.8.11"
description = "A simple script reloader"
license = "MIT"
authors = ["EcmaXp <[email protected]>"]
Expand Down
8 changes: 5 additions & 3 deletions reloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from watchdog.observers import Observer

__author__ = "EcmaXp"
__version__ = "0.8.10"
__version__ = "0.8.11"
__license__ = "MIT"
__url__ = "https://pypi.org/project/reloader.py/"

Expand Down Expand Up @@ -498,8 +498,8 @@ def execute(self):


parser = argparse.ArgumentParser(description=__doc__.strip())
parser.add_argument("--loop", action="store_true")
parser.add_argument("--clear", action="store_true")
parser.add_argument("--loop", "-l", action="store_true")
parser.add_argument("--clear", "-c", action="store_true")
parser.add_argument(
"--debounce-interval",
type=float,
Expand Down Expand Up @@ -528,6 +528,8 @@ def main():
script_path = args.script.resolve()
sys.argv = [str(script_path), *args.argv]

sys.path.insert(0, ".")

auto_reloader_cls = ScriptAutoReloader if args.loop else DaemonAutoReloader
auto_reloader = auto_reloader_cls(
script_path,
Expand Down

0 comments on commit c424482

Please sign in to comment.