bug-gnu-music
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building with Python 2.0


From: Gary Duzan
Subject: Building with Python 2.0
Date: Wed, 01 Nov 2000 22:36:18 -0500

   buildscripts/ps-to-pfa.py is using the "find" module which no
longer exists in Python 2.0 (and doesn't appear to be documented
in earlier releases.) The following patch should work with any
version of Python:

===========================================================================
*** buildscripts/ps-to-pfa.py.orig      Wed Nov  1 21:58:17 2000
--- buildscripts/ps-to-pfa.py   Wed Nov  1 22:18:08 2000
***************
*** 13,19 ****
  
  datadir = ''
  
- import find
  import os
  import sys
  import getopt
--- 13,18 ----
***************
*** 130,139 ****
        logfile.write ('[')
        
        files = []
!       import find                     # q
        suffixes = [".[0-9]", ".[0-9][0-9]",  ".[0-9][0-9][0-9]"]
        for suf in suffixes:
!               files = files + find.find (font_name + suf)
  
  
        # concat all files into charprocs.
--- 129,138 ----
        logfile.write ('[')
        
        files = []
!       import glob
        suffixes = [".[0-9]", ".[0-9][0-9]",  ".[0-9][0-9][0-9]"]
        for suf in suffixes:
!               files = files + glob.glob(font_name + suf)
  
  
        # concat all files into charprocs.
===========================================================================

The patch is relative to 1.3.86, but the same issue appear to be
present in 1.3.102.

                                        Gary D. Duzan


p.s. I'm not subscribed to the list, so please copy any replies to
me directly.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]