From 00cc4e9cfeba2c975544086fac10c5b214bcea0d Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 30 Oct 2018 10:17:54 -0700 Subject: [PATCH] Copy CSS during lexicon init --- lexipython.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lexipython.py b/lexipython.py index c01864d..89ebfe6 100755 --- a/lexipython.py +++ b/lexipython.py @@ -138,6 +138,9 @@ def command_init(name): # Create the Lexicon's config file with open(os.path.join(lex_path, "lexicon.cfg"), "w") as config_file: config_file.write(config) + # Copy the CSS file + with open(os.path.join(lex_path, "lexicon.css"), "w") as css_file: + css_file.write(utils.load_resource("lexicon.css")) # Create an example page with open(os.path.join(lex_path, "src", "example-page.txt"), "w") as destfile: destfile.write(utils.load_resource("example-page.txt"))