def run_ninja():
 signal.signal(signal.SIGINT, signal.SIG_DFL)
 if ((not settings.IS_WINDOWS) and (not settings.IS_MAC_OS)):
  try:
   import ctypes
   libc = ctypes.CDLL('libc.so.6')
   procname = 'ninja-ide'
   libc.prctl(15, ('%s\x00' % procname), 0, 0, 0)
  except:
   print "The process couldn't be renamed'"
 (filenames, projects_path, extra_plugins, linenos, log_level, log_file) = cliparser.parse()
 resources.create_home_dir_structure()
 from ninja_ide.tools.logger import NinjaLogger
 NinjaLogger.argparse(log_level, log_file)
 settings.load_settings()
 app = QApplication(sys.argv)
 from ninja_ide import gui
 gui.start_ide(app, filenames, projects_path, extra_plugins, linenos)
 sys.exit(app.exec_())

def run_ninja ( ) : signal . signal ( signal . SIGINT , signal . SIG_DFL ) if ( ( not settings . IS_WINDOWS ) and ( not settings . IS_MAC_OS ) ) : try : import ctypes libc = ctypes . CDLL ( 'libc.so.6' ) procname = 'ninja-ide' libc . prctl ( 15 , ( '%s\x00' % procname ) , 0 , 0 , 0 ) except : print "The process couldn't be renamed'" ( filenames , projects_path , extra_plugins , linenos , log_level , log_file ) = cliparser . parse ( ) resources . create_home_dir_structure ( ) from ninja_ide . tools . logger import NinjaLogger NinjaLogger . argparse ( log_level , log_file ) settings . load_settings ( ) app = QApplication ( sys . argv ) from ninja_ide import gui gui . start_ide ( app , filenames , projects_path , extra_plugins , linenos ) sys . exit ( app . exec_ ( ) )
first obtain the execution args and create the resources folder .