Skip to content

Commit

Permalink
Fix get function of gcc version number
Browse files Browse the repository at this point in the history
  • Loading branch information
kblomqvist committed Jun 30, 2013
1 parent a24c035 commit 51c1f64
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Aery32.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ def which(executable):
def gcc_version(gcc):
""" Returns GCC version in string """
version = ""
cmd = "%s --version" % gcc
try:
version = os.popen(cmd).readline().split()[-1]
version = os.popen("%s --version" % gcc).readline().split()[-1]
except:
pass
return version

SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__))
PATH_TO_AVR32GPP = which("avr32-g++")
AVR32GPP_VERSION = gcc_version(os.path.join(PATH_TO_AVR32GPP, "avr32-g++"))
AVR32GPP_VERSION = gcc_version("avr32-g++")

class AeryNewProjectCommand(sublime_plugin.WindowCommand):
settings = None
Expand Down

0 comments on commit 51c1f64

Please sign in to comment.