Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

import subdirectory python

GimmeDaRoot.py 				  # A .py file in your root directory
└─── FolderName/ 			  # A folder in your root directory
  └─── Im_In_Subdirectory.py  # A .py file in the subdirectory FolderName
  
  
GimmeDaRoot.py 				  # when working in this file
import FolderName.Im_In_Subdirectory as importedpy
 
PREVIOUS NEXT
Tagged: #import #subdirectory #python
ADD COMMENT
Topic
Name
7+4 =