summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Processing.py
diff options
context:
space:
mode:
authorrahulp132020-07-24 01:08:02 +0530
committerrahulp132020-07-24 01:08:02 +0530
commitc13e7b0f873e4857f1ce7924c0a72609df3ddca2 (patch)
tree119f73a57ec709c494b2c9e34cf309e2619008c7 /src/kicadtoNgspice/Processing.py
parent175208c2553bde875968a9bc53176b6039ba9360 (diff)
downloadeSim-c13e7b0f873e4857f1ce7924c0a72609df3ddca2.tar.gz
eSim-c13e7b0f873e4857f1ce7924c0a72609df3ddca2.tar.bz2
eSim-c13e7b0f873e4857f1ce7924c0a72609df3ddca2.zip
platform independent library and image paths, flake8 compliant
Diffstat (limited to 'src/kicadtoNgspice/Processing.py')
-rw-r--r--src/kicadtoNgspice/Processing.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kicadtoNgspice/Processing.py b/src/kicadtoNgspice/Processing.py
index 67ffd3f5..494c49b4 100644
--- a/src/kicadtoNgspice/Processing.py
+++ b/src/kicadtoNgspice/Processing.py
@@ -8,7 +8,11 @@ class PrcocessNetlist:
- This class include all the function required for pre-proccessing of
netlist before converting to Ngspice Netlist.
"""
- modelxmlDIR = 'library/modelParamXML'
+ init_path = '../../'
+ if os.name == 'nt':
+ init_path = ''
+
+ modelxmlDIR = init_path + 'library/modelParamXML'
def __init__(self):
pass