Skip to content

Commit

Permalink
fix __main__ runner @Dev->@debug
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan committed Feb 28, 2024
1 parent 41f742d commit 1d925e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htag/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def init(self):
app=getattr(module,"app")
if isinstance(app,Runner):
print("Found 'app' (new Runner), will run it")
print(app)
# run part (like defined in file, and open a tab/browser)
print(app,"Serving")
# run part (like defined in file)
app.run()
sys.exit(0)

Expand All @@ -63,8 +63,8 @@ def init(self):
tagClass=getattr(module,"App")

# run part (here FULL DEV, and open a tab/browser)
app=Runner(tagClass,reload=True,dev=True)
print(app)
app=Runner(tagClass,reload=True,debug=True)
print(app,"Serving")
app.run()
else:
print("ERROR",htagfile,"doesn't contain 'App' (tag class)")
Expand Down

0 comments on commit 1d925e1

Please sign in to comment.