File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -174,6 +174,11 @@ def get_tool_path(relpath, checkfunc):
174174 rver = utils .get_r_version (rpath )
175175 installed_tools += [('R' , rver )]
176176
177+ juliapath = get_tool_path (self .JULIA_PATH , osp .isdir )
178+ if juliapath is not None :
179+ juliaver = utils .get_julia_version (juliapath )
180+ installed_tools += [('Julia' , juliaver )]
181+
177182 tools = []
178183 for name , ver in installed_tools :
179184 metadata = wppm .get_package_metadata ('tools.ini' , name )
Original file line number Diff line number Diff line change @@ -237,11 +237,17 @@ def get_gcc_version(path):
237237 """Return version of the GCC compiler installed in *path*"""
238238 return exec_shell_cmd ('gcc --version' , path ).splitlines ()[0 ].split ()[- 1 ]
239239
240+
240241def get_r_version (path ):
241242 """Return version of the R installed in *path*"""
242243 return exec_shell_cmd ('dir ..\README.R*' , path ).splitlines ()[- 3 ].split ("-" )[- 1 ]
243244
244245
246+ def get_julia_version (path ):
247+ """Return version of the Julia installed in *path*"""
248+ return exec_shell_cmd ('julia.exe -v' , path ).splitlines ()[0 ].split (" " )[- 1 ]
249+
250+
245251def get_thg_version (path ):
246252 """Return version of TortoiseHg installed in *path*"""
247253 txt = exec_shell_cmd ('thg version' , path ).splitlines ()[0 ]
You can’t perform that action at this time.
0 commit comments