Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import logging
import os
import time
import traceback
# Removes annoying pyqode logging
pyqode_logger = logging.getLogger('pyqode.qt')
pyqode_logger.setLevel(logging.WARNING)
from model_view import frontend_adapter
if __name__ == "__main__":
try:
import resource
resource.setrlimit(
resource.RLIMIT_CORE,
(resource.RLIM_INFINITY, resource.RLIM_INFINITY))
except ImportError:
pass
os.chdir(os.path.dirname(os.path.abspath(__file__)))
try:
frontend_adapter.FrontEndAdapter.start_program()
except Exception as e:
with open('crash_log.txt', 'a') as f:
f.write(str(e))
f.write(traceback.format_exc())
time.sleep(0.5)
raise e