]> git.lyx.org Git - lyx.git/blobdiff - development/tools/gen_lfuns.py
Fixup commit ff42fe
[lyx.git] / development / tools / gen_lfuns.py
index acb2c17818048b2e6217524584d319956117cc65..f4dfb43b8061b1e9b145122618269d2c4f5962a0 100755 (executable)
@@ -364,7 +364,7 @@ def write_sections(file,lfuns):
         "Edit":  "Editing Functions (Cursor and Mouse Movement, Copy/Paste etc.)",
         "Math":  "Math Editor Functions",
         "Buffer":  "Buffer Fuctions (File and Window related)",
-        "System":  "System Funtions (Preferences, LyX Server etc.)",
+        "System":  "System Functions (Preferences, LyX Server etc.)",
         "Hidden":  "Hidden Functions (not listed for configuration)"
         }
         # write the lfuns to the file
@@ -377,14 +377,14 @@ def write_sections(file,lfuns):
                 write_fields(file, lf)
     
 def main(argv):
-    # parse command line arguments   
+    # parse command line arguments
     script_path, script_name = os.path.split(argv[0])
     if len(argv) < 2:
         error(usage(script_name))
     # input file
     lyxaction_path = argv[1]
-    if not os.path.exists(lyxaction_path):
-        error(script_name + ": %s is not a valid path" % lyxaction_path, usage(argv[0]))
+    if not os.path.isfile(lyxaction_path):
+        error(script_name + ": %s is not a valid path" % lyxaction_path)
 
     # output file
     if len(argv) == 3: