gvSIG bugs #4385
RShell doesn't work when gvSIG install path contains spaces
Status: | New | % Done: | 0% | |
---|---|---|---|---|
Priority: | Normal | Spent time: | - | |
Assignee: | - | |||
Category: | Scripting | |||
Target version: | - | |||
Severity: | Minor | Add-on version: | ||
gvSIG version: | 2.3.0 | Add-on build: | ||
gvSIG build: | 2447 | Add-on resolve version: | ||
Operative System: | Add-on resolve build: | |||
Keywords: | Proyecto: | |||
Has patch: | Hito: | |||
Add-on name: | Unknown |
Description
The RShell script in org.gvsig.r.app.mainplugin doesn't work when gvSIG install path contains spaces (e.g. under Program Files folder).
Using subprocess.call (instead of os.system) and adding an empty title parameter solves the issue:
import subprocess def RShellWindows(): RExe = os.path.abspath(os.path.join(os.path.dirname(__file__),"..","..","R","bin","x64","Rterm.exe")) subprocess.call(['start','/wait','',RExe,'--ess','--no-restore','--no-save'], shell=True)
History
#1 Updated by Álvaro Anguix almost 7 years ago
- Target version deleted (
2.4.0-2850-final (rev. org.gvsig.desktop-2.0.220))