]> git.donarmstrong.com Git - lilypond.git/commitdiff
Update makelsr.py to work with local copy
authorPhil Holmes <mail@philholmes.net>
Mon, 16 Apr 2012 14:35:15 +0000 (15:35 +0100)
committerPhil Holmes <mail@philholmes.net>
Mon, 16 Apr 2012 14:40:29 +0000 (15:40 +0100)
scripts/auxiliar/makelsr.py

index 3d088b526981748ddd7d7f2d8bdc9ee348fec97b..6927476be928b4c249761300bc550b3959751a1e 100755 (executable)
@@ -41,6 +41,8 @@ def exit_with_usage (n=0):
     sys.stderr.write (USAGE)
     sys.exit (n)
 
+TAGS = []
+
 if len (sys.argv) >= 2:
     in_dir = sys.argv[1]
     if not (os.path.isdir (in_dir)):
@@ -50,11 +52,10 @@ if len (sys.argv) >= 2:
         exit_with_usage (2)
     if not (os.path.isdir (DEST) and os.path.isdir (NEW_LYS)):
         exit_with_usage (3)
+    TAGS = os.listdir (in_dir)
 else:
     in_dir = ''
 
-TAGS = os.listdir (in_dir)
-
 # which convert-ly to use
 if os.path.isfile("out/bin/convert-ly"):
     conv_path='out/bin/'