File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import os
22import shutil
3+ import sys
34from pathlib import Path
45
56import eel
@@ -342,6 +343,7 @@ def get_language_support():
342343 return {
343344 'java' : java_return_code == 0 ,
344345 'chrome' : is_chrome_installed (), # Scratch bots need chrome to auto-run
346+ 'fullpython' : is_full_python (),
345347 }
346348
347349
@@ -535,6 +537,15 @@ def is_chrome_installed():
535537 return chm .find_path () is not None
536538
537539
540+ def is_full_python ():
541+ # As opposed to embedded python. A full python installation is better at package management,
542+ # has access to tkinter, etc. This logic might be brittle; it's based on the historical fact that
543+ # our embedded installer always put python within the RLBotGUI directory.
544+ if 'RLBotGUI' in Path (sys .executable ).parts :
545+ return False
546+ return True
547+
548+
538549def launch_eel (use_chrome ):
539550 port = 51993
540551 options = {'port' : port }
Original file line number Diff line number Diff line change 349349 </p >
350350 <md-button @click =" installRequirements(activeBot.path)"
351351 class =" md-primary md-raised" >Install Now</md-button >
352+ <p v-if =" !languageSupport.fullpython" >
353+ If the installation fails, try downloading our <a href =" http://www.rlbot.org/install/RLBotGUI.exe" >new launcher script</a >
354+ which makes RLBotGUI better with package management.
355+ </p >
352356 </div >
353357 </md-dialog-content >
354358
You can’t perform that action at this time.
0 commit comments