From 1ac3d4c7ca2dc02119388f92b22a774b3a4447a6 Mon Sep 17 00:00:00 2001 From: Jaculabilis Date: Tue, 29 May 2018 15:46:52 -0700 Subject: [PATCH] Remove leftover code --- lexipython.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lexipython.py b/lexipython.py index a1b7c0c..0f65315 100644 --- a/lexipython.py +++ b/lexipython.py @@ -132,15 +132,12 @@ def command_init(name): os.mkdir(os.path.join(lex_path, "statistics")) # Open the default config file config = utils.load_resource("lexicon.cfg") - #with open(os.path.join("src", "resources", "lexicon.cfg")) as def_cfg: - # config = def_cfg.read() # Edit the name field config = re.sub("Lexicon Title", "Lexicon {}".format(name), config) # Create the Lexicon's config file with open(os.path.join(lex_path, "lexicon.cfg"), "w") as config_file: config_file.write(config) # Create an example page - #with open(os.path.join("src", "resources", "example-page.txt")) as srcfile: with open(os.path.join(lex_path, "src", "example-page.txt"), "w") as destfile: destfile.write(utils.load_resource("example-page.txt")) # Create an empty status file