Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how call module in the same directory

from .posts_run import get_all_posts
#    ^ here do relative import
# or
from core.posts_run import get_all_posts
# because your package named 'core' and importing looks in root folder
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #module #directory
ADD COMMENT
Topic
Name
2+2 =