# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import sys import os import wx from robotide.version import VERSION from robotide.robotapi import ROBOT_LOGGER import logger APP = None LOG = logger.Logger() ROBOT_LOGGER.unregister_console_logger() ROBOT_LOGGER.register_logger(LOG) IS_WINDOWS = os.sep == '\\' IS_MAC = sys.platform == 'darwin' WX_VERSION = wx.VERSION_STRING if IS_WINDOWS: SETTINGS_DIRECTORY = os.path.join( os.environ['APPDATA'], 'RobotFramework', 'ride') else: SETTINGS_DIRECTORY = os.path.join( os.path.expanduser('~/.robotframework'), 'ride') LIBRARY_XML_DIRECTORY = os.path.join(SETTINGS_DIRECTORY, 'library_xmls') if not os.path.isdir(LIBRARY_XML_DIRECTORY): os.makedirs(LIBRARY_XML_DIRECTORY)
# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import sys from robotide.version import VERSION from robotide.robotapi import ROBOT_LOGGER from coreplugins import get_core_plugins from logger import Logger from platform import (IS_MAC, IS_WINDOWS, WX_VERSION, ctrl_or_cmd, bind_keys_to_evt_menu) LOG = Logger() ROBOT_LOGGER.disable_automatic_console_logger() ROBOT_LOGGER.register_logger(LOG) SETTING_EDITOR_WIDTH = 450 SETTING_LABEL_WIDTH = 150 SETTING_ROW_HEIGTH = 25 POPUP_BACKGROUND = (255, 255, 187) pyversion = '.'.join(str(v) for v in sys.version_info[:3]) SYSTEM_INFO = "Started RIDE %s using python version %s with wx version %s." % \ (VERSION, pyversion, WX_VERSION) ABOUT_RIDE = '''<h3>RIDE -- Robot Framework Test Data Editor</h3> <p>RIDE %s running on Python %s.</p> <p>RIDE is a test data editor for <a href="http://robotframework.org">Robot Framework</a>. For more information, see project pages at <a href="http://github.com/robotframework/RIDE">http://github.com/robotframework/RIDE</a>.</p>
# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import sys import os import wx from robotide.version import VERSION from robotide.robotapi import ROBOT_LOGGER from . import logger APP = None LOG = logger.Logger() ROBOT_LOGGER.unregister_console_logger() ROBOT_LOGGER.register_logger(LOG) IS_WINDOWS = os.sep == '\\' IS_MAC = sys.platform == 'darwin' IS_LINUX = sys.platform == 'linux' WX_VERSION = wx.VERSION_STRING if IS_WINDOWS: SETTINGS_DIRECTORY = os.path.join( os.environ['APPDATA'], 'RobotFramework', 'ride') else: SETTINGS_DIRECTORY = os.path.join( os.path.expanduser('~/.robotframework'), 'ride') LIBRARY_XML_DIRECTORY = os.path.join(SETTINGS_DIRECTORY, 'library_xmls') if not os.path.isdir(LIBRARY_XML_DIRECTORY):
# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import sys import os import wx from robotide.version import VERSION from robotide.robotapi import ROBOT_LOGGER import logger APP = None LOG = logger.Logger() ROBOT_LOGGER.disable_automatic_console_logger() ROBOT_LOGGER.register_logger(LOG) _SYSLOG = logger.Syslog() def SYSLOG(message, level='INFO'): _SYSLOG.message(message, level) IS_WINDOWS = os.sep == '\\' IS_MAC = sys.platform == 'darwin' WX_VERSION = wx.VERSION_STRING if IS_WINDOWS: SETTINGS_DIRECTORY = os.path.join( os.environ['APPDATA'], 'RobotFramework', 'ride')