]> git.lyx.org Git - lyx.git/blobdiff - development/tools/gen_lfuns.py
Improve autotools support for generating LFUNs.lyx
[lyx.git] / development / tools / gen_lfuns.py
index e65fc439e015e115a88bfcca8baf0b8043a27ae9..e8a91062dd7d11b8c52a2b6cfa08d4a31a2c8274 100755 (executable)
@@ -59,6 +59,12 @@ LFUNS_HEADER = """# gen_lfuns.py generated this file. For more info see http://w
 \\end_preamble
 \\use_default_options false
 \\maintain_unincluded_children false
+\\begin_local_layout
+Style Description
+LabelIndent           MM
+LeftMargin            MMMMMxx
+End
+\\end_local_layout
 \\language english
 \\language_package default
 \\inputencoding auto
@@ -371,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: