etwist/service.py
changeset 10589 7c23b7de2b8d
parent 10181 215403b9798f
equal deleted inserted replaced
10588:fdaa0e4b7eaf 10589:7c23b7de2b8d
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
    14 # details.
    14 # details.
    15 #
    15 #
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License along
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
       
    18 from __future__ import print_function
       
    19 
    18 import os
    20 import os
    19 import sys
    21 import sys
    20 
    22 
    21 try:
    23 try:
    22     import win32serviceutil
    24     import win32serviceutil
    23     import win32service
    25     import win32service
    24 except ImportError:
    26 except ImportError:
    25     print 'Win32 extensions for Python are likely not installed.'
    27     print('Win32 extensions for Python are likely not installed.')
    26     sys.exit(3)
    28     sys.exit(3)
    27 
    29 
    28 from os.path import join
    30 from os.path import join
    29 
    31 
    30 from cubicweb.etwist.server import (CubicWebRootResource, reactor, server)
    32 from cubicweb.etwist.server import (CubicWebRootResource, reactor, server)