old_contents: # -*- coding: utf-8 -*-
  #   Copyright 2012 Loris Corazza, Sakis Christakidis
  #
  #   Licensed under the Apache License, Version 2.0 (the "License");
  #   you may not use this file except in compliance with the License.
  #   You may obtain a copy of the License at
  #
  #       http://www.apache.org/licenses/LICENSE-2.0
  #
  #   Unless required by applicable law or agreed to in writing, software
  #   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.
  
  __requires__ = 'ComboClient==0.1'
  import sys
  from pkg_resources import load_entry_point
  
  if __name__ == '__main__':
    sys.exit(
      load_entry_point('ComboClient==0.1', 'console_scripts', 'p2nerClient')()
    )
  
  
  #from p2ner.base import *
  #import p2ner.abstract.engine
  #import subprocess
  #import p2ner.base.messages.bootstrap, twisted.application.internet, twisted.web.xmlrpc
  #from p2ner.core.components import getComponents, _entry_points, loadComponent
  #import weakref, twisted.internet, bitarray, construct
  #Client = loadComponent("engine", "ComboClient")
  #from twisted.internet import reactor
  #P2NER = Client(_parent=None,interface=('LocalControl',[],{}),UI=('GtkGui',[],{}),basic=False,port=50000)
  #reactor.run()
  
new_contents: # -*- coding: utf-8 -*-
  #   Copyright 2012 Loris Corazza, Sakis Christakidis
  #
  #   Licensed under the Apache License, Version 2.0 (the "License");
  #   you may not use this file except in compliance with the License.
  #   You may obtain a copy of the License at
  #
  #       http://www.apache.org/licenses/LICENSE-2.0
  #
  #   Unless required by applicable law or agreed to in writing, software
  #   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.
  
  __requires__ = 'ComboClient==0.1'
  import sys
  from pkg_resources import load_entry_point
  import atexit, os
  
  
  
  def taskkill_this():
  
      # kill this process
  
      current_pid = os.getpid()
  
      os.system("taskkill /pid %s /f" % current_pid)
  
  if __name__ == '__main__':
      atexit.register(taskkill_this)
      sys.exit(
          load_entry_point('ComboClient==0.1', 'console_scripts', 'p2nerClient')()
      )
  
  
subject: exit by killing process