def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) if sublime.platform() in ("osx", "linux"): self.cmd_line = ("mono", (const.path_to_fs_ac_binary(),)) else: assert sublime.platform() == "windows" self.cmd_line = (const.path_to_fs_ac_binary(), ())
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) if sublime.platform() in ('osx', 'linux'): self.cmd_line = ('mono', (const.path_to_fs_ac_binary(), )) else: assert sublime.platform() == 'windows' self.cmd_line = (const.path_to_fs_ac_binary(), ())
def get_server(): global _server if _server is None or not _server.proc.stdin: if sublime.platform() in ('osx', 'linux'): _server = Server('mono', const.path_to_fs_ac_binary()) else: assert sublime.platform() == 'windows' _server = Server(const.path_to_fs_ac_binary()) _server.start() pass return _server
def check_binaries(): print('FSharp: Checking installed files') return os.path.exists(const.path_to_fs_ac_binary())