summaryrefslogtreecommitdiff
path: root/src/maker/Appconfig.py
diff options
context:
space:
mode:
authorSumanto Kar2022-01-29 20:30:17 +0530
committerGitHub2022-01-29 20:30:17 +0530
commit72be05796c9a5b0eab31abb0a3df111a522c73e8 (patch)
treec0327814b7556f30fd1984295234447636d0839f /src/maker/Appconfig.py
parentfd42aac203c874ae49fa36c0334686762aea6d0b (diff)
parent036b3c28cefcc2e95be3d0f660e01fe2bd9630d5 (diff)
downloadeSim-72be05796c9a5b0eab31abb0a3df111a522c73e8.tar.gz
eSim-72be05796c9a5b0eab31abb0a3df111a522c73e8.tar.bz2
eSim-72be05796c9a5b0eab31abb0a3df111a522c73e8.zip
Merge pull request #178 from Eyantra698Sumanto/makerchip
Added the Makerchip Files and icon
Diffstat (limited to 'src/maker/Appconfig.py')
-rwxr-xr-xsrc/maker/Appconfig.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/maker/Appconfig.py b/src/maker/Appconfig.py
new file mode 100755
index 00000000..efeac75a
--- /dev/null
+++ b/src/maker/Appconfig.py
@@ -0,0 +1,35 @@
+import os.path
+from configparser import SafeConfigParser
+
+
+class Appconfig:
+ home = os.path.expanduser("~")
+ # Reading all variables from eSim config.ini
+ parser_esim = SafeConfigParser()
+ parser_esim.read(os.path.join(home, os.path.join('.esim', 'config.ini')))
+ try:
+ src_home = parser_esim.get('eSim', 'eSim_HOME')
+ xml_loc = os.path.join(src_home, 'library/modelParamXML')
+ lib_loc = os.path.expanduser('~')
+ except BaseException:
+ pass
+ esimFlag = 0
+
+ # Reading all variables from ngveri config.ini
+ # parser_ngveri = SafeConfigParser()
+ # parser_ngveri.read(os.path.join(home,
+ # os.path.join('.ngveri', 'config.ini')))
+
+ kicad_lib_template = {
+ "start_def": "DEF comp_name U 0 40 Y Y 1 F N",
+ "U_field": "F0 \"U\" 2850 1800 60 H V C CNN",
+ "comp_name_field": "F1 \"comp_name\" 2850 2000 60 H V C CNN",
+ "blank_field": ["F2 blank_quotes 2850 1950 60 H V C CNN",
+ "F3 blank_quotes 2850 1950 60 H V C CNN"],
+ "start_draw": "DRAW",
+ "draw_pos": "S 2350 2100 3350 1800 0 1 0 N",
+ "input_port": "X in 1 2150 2000 200 R 50 50 1 1 I",
+ "output_port": "X out 2 3550 2000 200 L 50 50 1 1 O",
+ "end_draw": "ENDDRAW",
+ "end_def": "ENDDEF"
+ }