Skip to content

'__main__.py' isn't used anywhere #69

@sleeptightAnsiC

Description

@sleeptightAnsiC

__main__.py does not seem to be used anywhere.
The entry point for ue4cli is actually in a different place:

ue4cli/setup.py

Lines 35 to 37 in fed71c1

entry_points = {
'console_scripts': ['ue4=ue4cli.cli:main']
}

I'm also not able to use this file directly like a script, as it does not bootstrap the module:

# cwd is repo root directory
$ python ./ue4cli                
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/kornel/Projects/ue4cli/./ue4cli/__main__.py", line 1, in <module>
    from .cli import main
ImportError: attempted relative import with no known parent package

Maybe I'm not using it right?
Shall we fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions