We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e222420 commit bd16318Copy full SHA for bd16318
pixie/cli.py
@@ -125,14 +125,15 @@ def load_config(config_file):
125
TranslationUnit(**tu)
126
)
127
elif 'path' in tu:
128
- file_type = tu.pop('path').split('.')[-1]
+ file_path = tu.pop('path')
129
+ file_type = file_path.split('.')[-1]
130
if file_type == 'c':
131
tranlastion_units.append(
- TranslationUnit.from_c_source(tu['path'], **tu)
132
+ TranslationUnit.from_c_source(file_path, **tu)
133
134
elif file_type == 'pyx':
135
- TranslationUnit.from_cython_source(tu['path'], **tu)
136
+ TranslationUnit.from_cython_source(file_path, **tu)
137
138
else:
139
raise ValueError("Invalid file type provided in path")
0 commit comments