[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to handle '-' in the 'from' part in a "from import" statement?

jfong at writes:
> ...
> But most of the download from Github has a directory named 'xxxx-master' which causes a trouble sometimes.

Those are likely not meant to be imported directly.

Typically, you have a "setup" step which installs (in some way)
a "distribution". This step usually ensures that you can use
"normal" Python import syntax to access all associated packages.

The "setup" step is typically performed with
"python develop" or "python install" --
with the "distribution" providing the "".