Blame SOURCES/Add-python3-support.patch

f96064
From b2c5de7835a753cad1f35db8202c4733b5fc2990 Mon Sep 17 00:00:00 2001
f96064
From: Parag A Nemade <pnemade@fedoraproject.org>
f96064
Date: Mon, 3 Oct 2016 12:56:29 +0530
f96064
Subject: [PATCH] Add python3 support
f96064
f96064
Signed-off-by: Parag A Nemade <pnemade@fedoraproject.org>
f96064
---
f96064
 pycontrib/FontCompare/fc/BitmapHandler.py    | 20 +++++++--------
f96064
 pycontrib/FontCompare/fc/DocCompare.py       |  2 +-
f96064
 pycontrib/FontCompare/fc/FontCompare.py      |  2 +-
f96064
 pycontrib/FontCompare/fc/GlyphConsistency.py |  2 +-
f96064
 pycontrib/FontCompare/fontcompare            |  2 +-
f96064
 pycontrib/FontCompare/unittests/unittests.py | 18 ++++++-------
f96064
 pycontrib/collab/web-test-collab.py          |  2 +-
f96064
 pycontrib/even.py                            |  2 +-
f96064
 pycontrib/gdraw/__init__.py                  |  4 +--
f96064
 pycontrib/gdraw/gdraw.py                     | 20 +++++++--------
f96064
 pycontrib/graphicore.py                      |  4 +--
f96064
 pycontrib/graphicore/ipython_view.py         | 13 +++++-----
f96064
 pycontrib/graphicore/shell.py                |  4 +--
f96064
 pycontrib/svg2sfd.py                         | 38 ++++++++++++++--------------
f96064
 pycontrib/webcollab.py                       |  6 ++---
f96064
 15 files changed, 70 insertions(+), 69 deletions(-)
f96064
f96064
diff --git a/pycontrib/FontCompare/fc/BitmapHandler.py b/pycontrib/FontCompare/fc/BitmapHandler.py
f96064
index d4d00da..c159128 100644
f96064
--- a/pycontrib/FontCompare/fc/BitmapHandler.py
f96064
+++ b/pycontrib/FontCompare/fc/BitmapHandler.py
f96064
@@ -35,7 +35,7 @@ def white_bg_square(img):
f96064
     "return a white-background-color image having the img in exact center"
f96064
     size = (max(img.size),)*2
f96064
     layer = Image.new('1', size, 1)
f96064
-    layer.paste(img, tuple(map(lambda x:(x[0]-x[1])/2, zip(size, img.size))))
f96064
+    layer.paste(img, tuple([(x[0]-x[1])/2 for x in zip(size, img.size)]))
f96064
     return layer
f96064
 
f96064
 class BitmapCompare:
f96064
@@ -73,13 +73,13 @@ class CreateSpriteSheet:
f96064
         #seperate each image with lots of whitespace
f96064
         master_height = pixelsize
f96064
         oldfont = font
f96064
-        print "the master image will by %d by %d" % (master_width, master_height)
f96064
-        print "creating image..."
f96064
+        print("the master image will by %d by %d" % (master_width, master_height))
f96064
+        print("creating image...")
f96064
         master = Image.new(
f96064
         mode='1',
f96064
         size=(master_width, master_height),
f96064
         color=0) # fully transparent
f96064
-        print "created."
f96064
+        print("created.")
f96064
         if effects == "italic":
f96064
             font.selection.all()
f96064
             font = font.italicize(-13)
f96064
@@ -92,16 +92,16 @@ class CreateSpriteSheet:
f96064
                     font[i].changeWeight(50,"auto",0,0,"auto")
f96064
                 font[i].export("temp.bmp",pixelsize,1)
f96064
                 img = Image.open("temp.bmp")
f96064
-                print "adding %s at %d..." % (str(i)+".bmp", location),
f96064
+                print("adding %s at %d..." % (str(i)+".bmp", location), end=' ')
f96064
                 square_one = white_bg_square(img)
f96064
                 square_one.resize((pixelsize, pixelsize))
f96064
                 master.paste(square_one,(location,0))
f96064
-                print "added."
f96064
+                print("added.")
f96064
             except:
f96064
-                print "ooopsy"
f96064
+                print("ooopsy")
f96064
             count+=1
f96064
-        print "done adding pics."
f96064
-        print "saving mastersprite.bmp..."
f96064
+        print("done adding pics.")
f96064
+        print("saving mastersprite.bmp...")
f96064
         master.save('data/mastersprite'+effects+'.bmp' )
f96064
-        print "saved!"
f96064
+        print("saved!")
f96064
         font.close()
f96064
diff --git a/pycontrib/FontCompare/fc/DocCompare.py b/pycontrib/FontCompare/fc/DocCompare.py
f96064
index 3a54bf9..df431e2 100644
f96064
--- a/pycontrib/FontCompare/fc/DocCompare.py
f96064
+++ b/pycontrib/FontCompare/fc/DocCompare.py
f96064
@@ -41,7 +41,7 @@ class DocCompare:
f96064
         bashcommand = "hb-view --output-format=\"png\" --output-file=\"/var/tmp/test.png\" --font-size="+str(fontsize)+" --text-file=\""
f96064
         bashcommand+=docpath+"\" "+"\""+testpath+"\""
f96064
         os.system(str(bashcommand))
f96064
-        print bashcommand
f96064
+        print(bashcommand)
f96064
         thefile = pkg_resources.resource_filename("fc",mockfont.highresdocfile)
f96064
         shutil.copy(thefile,"/var/tmp/standard.png")
f96064
         cm = BitmapCompare()
f96064
diff --git a/pycontrib/FontCompare/fc/FontCompare.py b/pycontrib/FontCompare/fc/FontCompare.py
f96064
index f21718c..c82b788 100644
f96064
--- a/pycontrib/FontCompare/fc/FontCompare.py
f96064
+++ b/pycontrib/FontCompare/fc/FontCompare.py
f96064
@@ -111,7 +111,7 @@ class FontCompare(object):
f96064
         scores = list()
f96064
         comparator = BitmapCompare()
f96064
         pixelsize = (resolution*ptsize)/72
f96064
-        print spritepath
f96064
+        print(spritepath)
f96064
         for i in range (glyphRange[0],glyphRange[1]):
f96064
             if i in Testfont:
f96064
                 Testfont[i].export("/var/tmp/tmp.bmp",pixelsize,1)
f96064
diff --git a/pycontrib/FontCompare/fc/GlyphConsistency.py b/pycontrib/FontCompare/fc/GlyphConsistency.py
f96064
index 38273c9..d5265fa 100644
f96064
--- a/pycontrib/FontCompare/fc/GlyphConsistency.py
f96064
+++ b/pycontrib/FontCompare/fc/GlyphConsistency.py
f96064
@@ -102,7 +102,7 @@ class GlyphConsistency:
f96064
         for i in range (glyphrange[0],glyphrange[1]):
f96064
             if i in font:
f96064
                 score =  self.glyph_round_compare(font[i],pixelsize)
f96064
-                print score
f96064
+                print(score)
f96064
                 set_round_score+=score
f96064
                 total+=1
f96064
         font.close()
f96064
diff --git a/pycontrib/FontCompare/fontcompare b/pycontrib/FontCompare/fontcompare
f96064
index e7e68d8..fdf7336 100755
f96064
--- a/pycontrib/FontCompare/fontcompare
f96064
+++ b/pycontrib/FontCompare/fontcompare
f96064
@@ -15,7 +15,7 @@
f96064
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
f96064
 """
f96064
 
f96064
-#! /usr/bin/python
f96064
+#! /usr/bin/python3
f96064
 from PyQt4.QtGui import QMessageBox
f96064
 from PyQt4.QtGui import QMainWindow
f96064
 from PyQt4.QtGui import QApplication
f96064
diff --git a/pycontrib/FontCompare/unittests/unittests.py b/pycontrib/FontCompare/unittests/unittests.py
f96064
index 18e1e95..d8a1190 100644
f96064
--- a/pycontrib/FontCompare/unittests/unittests.py
f96064
+++ b/pycontrib/FontCompare/unittests/unittests.py
f96064
@@ -55,7 +55,7 @@ class Basictests(unittest.TestCase):
f96064
         for tup in basic:
f96064
             if tup[1]!=10:
f96064
                 bastest=0
f96064
-        self.failUnless(bastest)
f96064
+        self.assertTrue(bastest)
f96064
         testfont = fontforge.open("unittests/lohit.ttf")
f96064
         bold = cm.font_facecompare(testfont,mockfont,(0x900,0x97f),\
f96064
         600,12,1,"bold")
f96064
@@ -66,28 +66,28 @@ class Basictests(unittest.TestCase):
f96064
         normal = cm.font_facecompare(testfont,mockfont,(0x900,0x97f),\
f96064
         600,12,1,"normal")
f96064
         test = 1
f96064
-        print len(normal)
f96064
+        print(len(normal))
f96064
         for tup in bold:
f96064
             if tup[1]==100 or tup[1]==0:
f96064
                 test1=1
f96064
                 break
f96064
-        self.failUnless(test)
f96064
+        self.assertTrue(test)
f96064
         test = 0
f96064
         for tup in italic:
f96064
             if tup[1]==100 or tup[1]==0:
f96064
                 test=1
f96064
                 break
f96064
-        self.failUnless(test is 1)
f96064
+        self.assertTrue(test is 1)
f96064
         test = 0
f96064
         for tup in normal:
f96064
             if tup[1]==100 or tup[1]==0:
f96064
                 test=1
f96064
                 break
f96064
-        self.failUnless(test is 1)
f96064
+        self.assertTrue(test is 1)
f96064
         test = 0
f96064
         if len(normal) == len(bold) == len(italic):
f96064
             test = 1
f96064
-        self.failUnless(test is 1)
f96064
+        self.assertTrue(test is 1)
f96064
 
f96064
     def testGlyphConsistency(self):
f96064
         cm = GlyphConsistency()
f96064
@@ -99,11 +99,11 @@ class Basictests(unittest.TestCase):
f96064
         test3 = cm.glyph_round_consistency(testfont,(0x900,0x97f),50)
f96064
 
f96064
         test = (0 <= test1[0][1] <= 10)
f96064
-        self.failUnless(test)
f96064
+        self.assertTrue(test)
f96064
         test2 = (0 <= test2 <= 10)
f96064
-        self.failUnless(test2)
f96064
+        self.assertTrue(test2)
f96064
         test3 = (0 <= test3 <= 10)
f96064
-        self.failUnless(test3)
f96064
+        self.assertTrue(test3)
f96064
 
f96064
 """
f96064
 unittests for DocCompare not required.
f96064
diff --git a/pycontrib/collab/web-test-collab.py b/pycontrib/collab/web-test-collab.py
f96064
index 47b763f..b19f930 100755
f96064
--- a/pycontrib/collab/web-test-collab.py
f96064
+++ b/pycontrib/collab/web-test-collab.py
f96064
@@ -68,7 +68,7 @@ def OnCollabUpdate(f):
f96064
             "end": "null" # this is simply so we dont have to manage keeping the last item with no terminating ,
f96064
             }, 
f96064
             sort_keys=True, indent=4, separators=(',', ': '))
f96064
-    print js
f96064
+    print(js)
f96064
     fi = open(fontJsonOnDisk, 'w')
f96064
     fi.write(js)
f96064
 
f96064
diff --git a/pycontrib/even.py b/pycontrib/even.py
f96064
index 96f9128..4f30fcb 100755
f96064
--- a/pycontrib/even.py
f96064
+++ b/pycontrib/even.py
f96064
@@ -1,4 +1,4 @@
f96064
-#!/usr/bin/python
f96064
+#!/usr/bin/python3
f96064
 # -*- coding: utf-8 -*-
f96064
 """
f96064
 running even from the fontforge menu
f96064
diff --git a/pycontrib/gdraw/__init__.py b/pycontrib/gdraw/__init__.py
f96064
index d47976c..dde7ea8 100644
f96064
--- a/pycontrib/gdraw/__init__.py
f96064
+++ b/pycontrib/gdraw/__init__.py
f96064
@@ -1,4 +1,4 @@
f96064
-#!/usr/bin/python
f96064
+#!/usr/bin/python3
f96064
 # vim:ts=8:sw=4:expandtab:encoding=utf-8
f96064
 '''
f96064
 Copyright <hashao2@gmail.com> 2009
f96064
@@ -22,7 +22,7 @@ Copyright <hashao2@gmail.com> 2009
f96064
 __all__ = ['Timer', 'GtkRunner', 'gtkrunner']
f96064
 __version__ = '0.1'
f96064
 
f96064
-from gdraw import *
f96064
+from .gdraw import *
f96064
 
f96064
 def main():
f96064
     pass
f96064
diff --git a/pycontrib/gdraw/gdraw.py b/pycontrib/gdraw/gdraw.py
f96064
index f2d5e50..8b6e693 100755
f96064
--- a/pycontrib/gdraw/gdraw.py
f96064
+++ b/pycontrib/gdraw/gdraw.py
f96064
@@ -1,4 +1,4 @@
f96064
-#!/usr/bin/python
f96064
+#!/usr/bin/python3
f96064
 '''ctypes wrapper to Attach the GDraw event handler to the gtk main loop.
f96064
 
f96064
 Copyright <hashao2@gmail.com> 2009
f96064
@@ -67,7 +67,7 @@ def setup_syspath(modpath="modules"):
f96064
 
f96064
 __all__ = ['Timer', 'GtkRunner', 'gtkrunner']
f96064
 
f96064
-from _gdraw import *
f96064
+from ._gdraw import *
f96064
 from ctypes import *
f96064
 import types
f96064
 
f96064
@@ -111,7 +111,7 @@ class Timer:
f96064
 
f96064
         return
f96064
         def dodo(*args):
f96064
-            print 'aaa'
f96064
+            print('aaa')
f96064
             return False
f96064
         self.add(1000, dodo)
f96064
 
f96064
@@ -122,7 +122,7 @@ class Timer:
f96064
 
f96064
     def _event_handler(self, gw, event):
f96064
         evt = event.contents
f96064
-        print "_event_handler()"
f96064
+        print("_event_handler()")
f96064
         if evt.type == et_timer:
f96064
             timer = evt.u.timer.timer
f96064
             tkey = addressof(timer.contents)
f96064
@@ -147,7 +147,7 @@ class Timer:
f96064
         ci.func = CallBackFunc(func)
f96064
         ci.data = data
f96064
 
f96064
-        print "timer.add timeout", timeout
f96064
+        print("timer.add timeout", timeout)
f96064
         frequency = 1 # Use return value of func() to decide repeat like gtk.
f96064
         timer = GDrawRequestTimer(self.win, timeout, timeout, byref(ci))
f96064
 
f96064
@@ -190,7 +190,7 @@ class GtkRunner:
f96064
 
f96064
     def _do_main(self, *args):
f96064
         '''The function called by the gdraw timeout handler.'''
f96064
-        print "do_main"
f96064
+        print("do_main")
f96064
         while gtk.events_pending():
f96064
             gtk.main_iteration(False)
f96064
         return True
f96064
@@ -207,15 +207,15 @@ class GtkRunner:
f96064
             self.gtk_timer = None
f96064
 
f96064
     def OnDestroyWindow(self, widget, fd ):
f96064
-        print fd
f96064
+        print(fd)
f96064
         fontforge.removeGtkWindowToMainEventLoopByFD( fd )
f96064
         self.stop()
f96064
         return True
f96064
 
f96064
     def sniffwindow(self,w):
f96064
         '''sniff key presses for a gtk window'''
f96064
-        print "sniffwindow w", w
f96064
-        print "sniff active font:", fontforge.activeFont()
f96064
+        print("sniffwindow w", w)
f96064
+        print("sniff active font:", fontforge.activeFont())
f96064
         w.connect("key-release-event", self._do_main)
f96064
         fontforge.addGtkWindowToMainEventLoop(w.window.xid)
f96064
         fd = fontforge.getGtkWindowMainEventLoopFD(w.window.xid)
f96064
@@ -223,7 +223,7 @@ class GtkRunner:
f96064
 
f96064
     def sniffwindowid(self,xid):
f96064
         '''sniff key presses for a gtk window'''
f96064
-        print "sniffwindowid xid", xid
f96064
+        print("sniffwindowid xid", xid)
f96064
         #w.connect("key-release-event", self._do_main)
f96064
 
f96064
     def start(self, timeout=GTIMEOUT):
f96064
diff --git a/pycontrib/graphicore.py b/pycontrib/graphicore.py
f96064
index f95e488..229a2b7 100755
f96064
--- a/pycontrib/graphicore.py
f96064
+++ b/pycontrib/graphicore.py
f96064
@@ -1,4 +1,4 @@
f96064
-#!/usr/bin/python
f96064
+#!/usr/bin/python3
f96064
 # -*- coding: utf-8 -*-
f96064
 """
f96064
 running the fontforge scripts in the graphicore folder on fontforge startup
f96064
@@ -22,4 +22,4 @@ sys.path.append(os.path.dirname(sys.modules[__name__].__file__))
f96064
 sys.path.reverse();
f96064
 
f96064
 #load the modules
f96064
-import graphicore.shell
f96064
\ No newline at end of file
f96064
+import graphicore.shell
f96064
diff --git a/pycontrib/graphicore/ipython_view.py b/pycontrib/graphicore/ipython_view.py
f96064
index f39eedb..2b77395 100644
f96064
--- a/pycontrib/graphicore/ipython_view.py
f96064
+++ b/pycontrib/graphicore/ipython_view.py
f96064
@@ -1,4 +1,4 @@
f96064
-#!/usr/bin/python
f96064
+#!/usr/bin/python3
f96064
 '''
f96064
 Provides IPython console widget.
f96064
 
f96064
@@ -17,10 +17,11 @@ import re
f96064
 import sys
f96064
 import os
f96064
 import pango
f96064
-from StringIO import StringIO
f96064
-import thread
f96064
+from io import StringIO
f96064
+import _thread
f96064
 
f96064
 import IPython
f96064
+from functools import reduce
f96064
 
f96064
 class IterableIPShell:
f96064
   '''
f96064
@@ -118,7 +119,7 @@ class IterableIPShell:
f96064
     '''
f96064
     This function updates namespace with sys.modules
f96064
     '''
f96064
-    for k,v in sys.modules.items():
f96064
+    for k,v in list(sys.modules.items()):
f96064
       if not '.' in k:
f96064
         self.IP.user_ns.update({k:v})
f96064
 
f96064
@@ -271,11 +272,11 @@ class IterableIPShell:
f96064
     @type header: string
f96064
     '''
f96064
     stat = 0
f96064
-    if verbose or debug: print header+cmd
f96064
+    if verbose or debug: print(header+cmd)
f96064
     # flush stdout so we don't mangle python's buffering
f96064
     if not debug:
f96064
       input, output = os.popen4(cmd)
f96064
-      print output.read()
f96064
+      print(output.read())
f96064
       output.close()
f96064
       input.close()
f96064
 
f96064
diff --git a/pycontrib/graphicore/shell.py b/pycontrib/graphicore/shell.py
f96064
index 5d102f7..32fa584 100755
f96064
--- a/pycontrib/graphicore/shell.py
f96064
+++ b/pycontrib/graphicore/shell.py
f96064
@@ -1,4 +1,4 @@
f96064
-#!/usr/bin/python
f96064
+#!/usr/bin/python3
f96064
 # -*- coding: utf-8 -*-
f96064
 """
f96064
 FontForge Interactive Python Shell
f96064
@@ -32,7 +32,7 @@ if len(sys.argv) == 0:
f96064
     # some versions of IPython need content in sys.argv
f96064
     sys.argv.append('')
f96064
 
f96064
-from ipython_view import *
f96064
+from .ipython_view import *
f96064
 import gdraw
f96064
 
f96064
 def runShell(data = None, glyphOrFont = None):
f96064
diff --git a/pycontrib/svg2sfd.py b/pycontrib/svg2sfd.py
f96064
index e1fc0ac..e23cb15 100644
f96064
--- a/pycontrib/svg2sfd.py
f96064
+++ b/pycontrib/svg2sfd.py
f96064
@@ -1,4 +1,4 @@
f96064
-#!/usr/bin/python
f96064
+#!/usr/bin/python3
f96064
 #
f96064
 # Copyright 2013 Google Inc. All rights reserved.
f96064
 # 
f96064
@@ -49,7 +49,7 @@ def print_one_cmd(cmd, args):
f96064
       result.append('%f' % (scale * args[i]))
f96064
   result.append(cmd)
f96064
   result.append('0')  # TODO: should mark corner points
f96064
-  print ' '.join(result)
f96064
+  print(' '.join(result))
f96064
 
f96064
 def apply_rel_xy(xy, args):
f96064
   x0, y0 = xy
f96064
@@ -75,7 +75,7 @@ def path_to_sfd(path):
f96064
     for i in range(num_args_cmd(cmd)):
f96064
       m = fre.match(path)
f96064
       if m is None:
f96064
-        print 'no float match:', path
f96064
+        print('no float match:', path)
f96064
       args.append(float(m.group(1)))
f96064
       path = path[m.end():]
f96064
     #print cmd, args
f96064
@@ -128,13 +128,13 @@ def conv_svg(fn, char, glyphnum = None):
f96064
   if glyphnum == None:
f96064
     glyphnum = lastglyphnum + 1
f96064
   lastglyphnum = glyphnum
f96064
-  print 'StartChar:', os.path.basename(fn)[:-4]
f96064
-  print 'Encoding: %d %d %d' % (char, glyphnum, char)
f96064
-  print 'Width: %d' % (21 * 40)
f96064
-  print 'Flags: W'
f96064
-  print 'LayerCount: 2'
f96064
-  print 'Fore'
f96064
-  print 'SplineSet'
f96064
+  print('StartChar:', os.path.basename(fn)[:-4])
f96064
+  print('Encoding: %d %d %d' % (char, glyphnum, char))
f96064
+  print('Width: %d' % (21 * 40))
f96064
+  print('Flags: W')
f96064
+  print('LayerCount: 2')
f96064
+  print('Fore')
f96064
+  print('SplineSet')
f96064
   doc = xml.dom.minidom.parse(fn)
f96064
   # TODO: reverse paths if fill color is white-ish (this is more code,
f96064
   # and in the meantime, we'll rely on correct path direction in FF)
f96064
@@ -147,16 +147,16 @@ def conv_svg(fn, char, glyphnum = None):
f96064
     cy = float(circle.getAttribute('cy'))
f96064
     r = float(circle.getAttribute('r'))
f96064
     circle_to_sfd(cx, cy, r)
f96064
-  print 'EndSplineSet'
f96064
-  print 'EndChar'
f96064
+  print('EndSplineSet')
f96064
+  print('EndChar')
f96064
 
f96064
 def print_header():
f96064
   global header_printed
f96064
-  print '''SplineFontDB: 3.0
f96064
+  print('''SplineFontDB: 3.0
f96064
 FontName: %s
f96064
 FullName: %s
f96064
-FamilyName: %s''' % (font_name, font_name, font_name)
f96064
-  print '''Weight: Medium
f96064
+FamilyName: %s''' % (font_name, font_name, font_name))
f96064
+  print('''Weight: Medium
f96064
 Copyright: Copyright (C) 2011 Google Inc.
f96064
 Version: 001.000
f96064
 UnderlinePosition: -120
f96064
@@ -180,12 +180,12 @@ HheadAOffset: 0
f96064
 HheadDescent: 200
f96064
 HheadDOffset: 0
f96064
 BeginChars: 57600 57600
f96064
-'''
f96064
+''')
f96064
   header_printed = True
f96064
 
f96064
 def print_footer():
f96064
-  print '''EndChars
f96064
-EndSplineFont'''
f96064
+  print('''EndChars
f96064
+EndSplineFont''')
f96064
 
f96064
 def parse_int(x):
f96064
   if x.startswith('0x'):
f96064
@@ -197,7 +197,7 @@ def run_file(fn):
f96064
   global char_num
f96064
   global font_name
f96064
   directory = ''
f96064
-  for l in file(fn).xreadlines():
f96064
+  for l in file(fn):
f96064
     if l.startswith('#'):
f96064
       continue
f96064
     s = l.strip().split()
f96064
diff --git a/pycontrib/webcollab.py b/pycontrib/webcollab.py
f96064
index 9ee0f17..4be07ec 100755
f96064
--- a/pycontrib/webcollab.py
f96064
+++ b/pycontrib/webcollab.py
f96064
@@ -1,4 +1,4 @@
f96064
-#!/usr/bin/python
f96064
+#!/usr/bin/python3
f96064
 # -*- coding: utf-8 -*-
f96064
 """
f96064
 running web collab server hooks
f96064
@@ -44,8 +44,8 @@ def startWebServerInCollabMode(data = None, glyphOrFont = None):
f96064
     global child
f96064
     global childNodejs
f96064
     ensureChildClosed()
f96064
-    print("FONTFORGE:" + FONTFORGE)
f96064
-    print("script path:" + collabpath + "web-test-collab.py")
f96064
+    print(("FONTFORGE:" + FONTFORGE))
f96064
+    print(("script path:" + collabpath + "web-test-collab.py"))
f96064
     child = subprocess.Popen( [ FONTFORGE, "-forceuihidden", "-script", collabpath + "web-test-collab.py" ] )
f96064
     #
f96064
     # start the nodejs server
f96064
-- 
f96064
2.9.3
f96064