Skip to content

Commit cc75d1a

Browse files
edrasEdras Pacola
andcommitted
Feat import export variable list (#68)
* adding functions to import/export variables * pickle, yaml, and elf file format * adding example program * added test to check for import/export - single variable - multiple variables - all variables - yaml, pickle, and elf file *elf_file cannot be exported --------- Co-authored-by: Edras Pacola <edras.pacola@microchip.com>
1 parent a99c6e4 commit cc75d1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyx2cscope/variable/variable_factory.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from dataclasses import asdict
1010

1111
from mchplnet.lnet import LNet
12-
from pyx2cscope.parser.elf_parser import DummyParser
12+
from pyx2cscope.parser.elf_parser import DummyParser, VariableInfo
1313
from pyx2cscope.parser.generic_parser import GenericParser
1414
from pyx2cscope.variable.variable import (
1515
Variable,
@@ -188,7 +188,6 @@ def get_variable(self, name: str) -> Variable | None:
188188
"""
189189
try:
190190
variable_info = self.parser.get_var_info(name)
191-
192191
return self.get_variable_raw(variable_info)
193192
except Exception as e:
194193
logging.error(f"Error while getting variable '{name}' : {str(e)}")

0 commit comments

Comments
 (0)