Home Download Buy Blog Forum Support

Build System issue with paths containing spaces

Re: Build System issue with paths containing spaces

Postby bcavett on Thu Jun 28, 2012 3:29 pm

Enrico: I was having this same exact problem when trying to get this running today. I ended up fixing it by making my own plugin to use as the target command in the the build-system.

Create a new plugin like this:
Code: Select all
import sublime, sublime_plugin
import subprocess

class ExecMsxCommand(sublime_plugin.WindowCommand):
   def run(self, cmd = [], **kwargs):
      subprocess.call(cmd[0] + " " + cmd[1] + " " + cmd[2], shell=False)


Set up your build file like this:
Code: Select all
{
   "cmd": ["mxscom.exe", "-f", "$file"],
   "selector": "source.MaxScript",
   "target": "exec_msx"
}


Do you have plans on releasing the maxscript syntax highlighting to the community when they are done? I was going to begin that process as well, it seems pretty daunting.
bcavett
 
Posts: 1
Joined: Thu Jun 28, 2012 3:23 pm

Previous

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 10 guests