#!/usr/bin/env python
# lyx-remote         -*- coding: iso-8859-1 -*-
# Copyright (c) 2005 Gnter Milde
# Released under the terms of the GNU General Public License (ver. 2 or later)

"""Open a file in a running LyX or start LyX with the file

   Needs the LyX-Server running (Set Edit>Preferences>Paths>Server-pipe)
"""

# import sys, os
import logging

# Customizable values (defaults shown)
# ------------------------------------

from LyX import constants
# default timeout for reading the outpipe (in ms)
# constants.LYXSERVER_POLL_TIMEOUT = 1000 # default 1 s
# constants.LOG_LEVEL = logging.DEBUG # default INFO
constants.LOG_LEVEL = logging.WARN # default INFO

# now import with the set defaults
from LyX.lyxclient import lyx_remote


lyx_remote()
