Skip to content

Commit cfcad44

Browse files
committed
Suggesting the new RLBotGUI launcher script.
1 parent cf63c11 commit cfcad44

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

rlbot_gui/gui.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import shutil
3+
import sys
34
from pathlib import Path
45

56
import 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+
538549
def launch_eel(use_chrome):
539550
port = 51993
540551
options = {'port': port}

rlbot_gui/gui/main.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@
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

0 commit comments

Comments
 (0)