File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 19
19
20
20
if (Path (__file__ ).parent / 'simulator/VERSION' ).exists ():
21
21
print ("Running in release mode" )
22
- SIM_BASE = Path (__file__ ).parent
22
+ SIM_BASE = Path (__file__ ).parent . resolve ()
23
23
else :
24
24
print ("Running in development mode" )
25
25
# Assume the script is in the scripts directory
26
- SIM_BASE = Path (__file__ ).parents [1 ]
26
+ SIM_BASE = Path (__file__ ).parents [1 ]. resolve ()
27
27
28
28
POSSIBLE_WEBOTS_PATHS = [
29
29
("darwin" , "/Applications/Webots.app/Contents/MacOS/webots" ),
@@ -82,6 +82,8 @@ def main() -> None:
82
82
Popen (
83
83
[str (webots ), str (world_file )],
84
84
creationflags = DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP ,
85
+ # shell=True is needed to run from shortcuts
86
+ shell = (webots .suffix == ".lnk" ),
85
87
)
86
88
else :
87
89
Popen ([str (webots ), str (world_file )], start_new_session = True )
You can’t perform that action at this time.
0 commit comments