My directory structure is:
package_name/
__init__.py
script.py
time.py
I'm trying to import time
(the built-in package) from script.py
. however, my sibling time.py
is hooked up instead.
What's the syntax of importing a package globally? (e.g. importing from /usr/lib/python2.7/dist-packages
)
- In
c#
i know it as theglobal::
prefix, what's the equivalent in python?