-
-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
__main__.py file:
> cat __main__.py
from . import __name__
from .cli import app
app(prog_name=__name__)as you see __name__ variable has imported and used!
unimport behavior:
> unimport __main__.py
__name__ at __main__.py:1unimport mark it as unused!
Script to check the behavior (Linux):
#!/bin/bash
printf "from . import __name__\nfrom .cli import app\n\napp(prog_name=___name__)\n" > __main__.py
cat __main__.py
unimport __main__.py
rm __main__.pyReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working