Skip to content

Commit 1cb3aa8

Browse files
authored
Create file-from-another-directory
1 parent 28c2aac commit 1cb3aa8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/file-from-another-directory

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import sys
2+
sys.path.insert(0, 'another_directory')
3+
import file_name
4+
#example
5+
import file 1
6+
from file import fileclass

0 commit comments

Comments
 (0)