File: ns_path.py

package info (click to toggle)
python-jedi 0.19.1%2Bds1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,680 kB
  • sloc: python: 28,783; makefile: 172; ansic: 13
file content (18 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import sys
import os
from os.path import dirname

sys.path.insert(0, os.path.join(dirname(__file__), 'namespace2'))
sys.path.insert(0, os.path.join(dirname(__file__), 'namespace1'))

#? ['mod1']
import pkg1.pkg2.mod1

#? ['mod2']
import pkg1.pkg2.mod2

#? ['mod1_name']
pkg1.pkg2.mod1.mod1_name

#? ['mod2_name']
pkg1.pkg2.mod2.mod2_name