Skip to content

Commit 6328403

Browse files
committed
use symlink to python_packages instead of modifying python path
1 parent 76caf87 commit 6328403

15 files changed

Lines changed: 16 additions & 35 deletions

examples/diode/diode_1d.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# limitations under the License.
1414

1515
from ds import *
16-
import sys
17-
sys.path.append('../../python_packages')
18-
from simple_physics import *
16+
from python_packages.simple_physics import *
1917
#####
2018
# dio1
2119
#

examples/diode/diode_2d.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# limitations under the License.
1414

1515
from ds import *
16-
import sys
17-
sys.path.append('../../python_packages')
18-
from simple_physics import *
16+
from python_packages.simple_physics import *
1917
#####
2018
# dio1
2119
#

examples/diode/gmsh_diode2d.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# limitations under the License.
1414

1515
from ds import *
16-
import sys
17-
sys.path.append('../../python_packages')
18-
from simple_physics import *
16+
from python_packages.simple_physics import *
1917

2018
device="diode2d"
2119
region="Bulk"

examples/diode/gmsh_diode3d.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# limitations under the License.
1414

1515
from ds import *
16-
import sys
17-
sys.path.append('../../python_packages')
18-
from simple_physics import *
16+
from python_packages.simple_physics import *
1917

2018
device="diode3d"
2119
region="Bulk"

examples/diode/python_packages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../python_packages

examples/diode/ssac_diode.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

1515
#### Small Signal simulation
1616
from ds import *
17-
import sys
18-
sys.path.append('../../python_packages')
19-
from simple_physics import *
17+
from python_packages.simple_physics import *
2018

2119
#This requires a circuit element to integrated current
2220
circuit_element(name="V1", n1=GetContactBiasName("top"), n2=0, value=0.0, acreal=1.0, acimag=0.0)

examples/mobility/Klaassen.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# limitations under the License.
1414

1515
from ds import *
16-
import sys
17-
sys.path.append('../../python_packages')
18-
from model_create import *
16+
from python_packages.model_create import *
1917

2018
def Set_Mobility_Parameters(device, region):
2119
#As

examples/mobility/gmsh_mos2d.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import sys
16-
sys.path.append('../../python_packages')
17-
from simple_physics import *
18-
from ramp import *
15+
from python_packages.simple_physics import *
16+
from python_packages.ramp import *
1917

2018
import gmsh_mos2d_create
2119
device = "mos2d"

examples/mobility/gmsh_mos2d_kla.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
#set_parameter -name threads_task_size -value 1024
1717
import gmsh_mos2d_create
1818
from ds import *
19-
import sys
20-
sys.path.append('../../python_packages')
21-
from simple_physics import *
22-
from ramp import *
19+
from python_packages.simple_physics import *
20+
from python_packages.ramp import *
2321
from Klaassen import *
2422
from mos_physics import *
2523

examples/mobility/mos_physics.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# limitations under the License.
1414

1515
from ds import *
16-
import sys
17-
sys.path.append('../../python_packages')
18-
from model_create import *
16+
from python_packages.model_create import *
1917

2018
def CreateElementElectronContinuityEquation(device, region, current_model):
2119
'''

0 commit comments

Comments
 (0)