Skip to content

Commit

Permalink
replace deprecated inspect function (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Feb 7, 2020
1 parent bbdda53 commit 81eb2fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gui/wxpython/core/gconsole.py
Expand Up @@ -538,7 +538,10 @@ def RunCmd(self, command, compReg=True, env=None, skipInterface=False,
command[0])
pymodule = imp.load_source(
command[0].replace('.', '_'), pyPath)
pymain = inspect.getargspec(pymodule.main)
try: # PY3
pymain = inspect.getfullargspec(pymodule.main)
except AttributeError:
pymain = inspect.getargspec(pymodule.main)
if pymain and 'giface' in pymain.args:
pymodule.main(self._giface)
return
Expand Down

0 comments on commit 81eb2fe

Please sign in to comment.