File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
import shutil
3
+ import sys
3
4
from pathlib import Path
4
5
5
6
import eel
@@ -342,6 +343,7 @@ def get_language_support():
342
343
return {
343
344
'java' : java_return_code == 0 ,
344
345
'chrome' : is_chrome_installed (), # Scratch bots need chrome to auto-run
346
+ 'fullpython' : is_full_python (),
345
347
}
346
348
347
349
@@ -535,6 +537,15 @@ def is_chrome_installed():
535
537
return chm .find_path () is not None
536
538
537
539
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
+
538
549
def launch_eel (use_chrome ):
539
550
port = 51993
540
551
options = {'port' : port }
Original file line number Diff line number Diff line change 349
349
</p >
350
350
<md-button @click =" installRequirements(activeBot.path)"
351
351
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 >
352
356
</div >
353
357
</md-dialog-content >
354
358
You can’t perform that action at this time.
0 commit comments