Absolute and Relative imports - Python Tutorial 28

Published: 23 May 2020
on channel: Automation Zone
35,131
507

Absolute = Complete path starting from the project dir
Relative = path using the current file location


Relative imports are as follows

from . import something = from current dir
from .. import something = from parent dir
from .Package import something = from currentdir.Package import something


Watch video Absolute and Relative imports - Python Tutorial 28 online without registration, duration hours minute second in high quality. This video was added by user Automation Zone 23 May 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 35,131 once and liked it 507 people.