Skip to content

Commit

Permalink
trimmed debug commands
Browse files Browse the repository at this point in the history
  • Loading branch information
charudatta10 committed Jun 3, 2024
1 parent 3ae41e0 commit 3660d77
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion README_ppt.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ k
---

## Built With 🔧
![](https://img.shields.io/badge/K-72BFFC?style=for-the-badge&logo=k&logoColor=fff)
![](https://img.shields.io/badge/K-C1B90C?style=for-the-badge&logo=k&logoColor=000)

<!-- GETTING STARTED -->

Expand Down
6 changes: 0 additions & 6 deletions config_file_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ def get_data(self):
self.data["img_logo"]=input("Enter project logo path -> ")

def gen_file(self, file_name='config.json'):
print(file_name)
file_name = Path(file_name)
print(file_name)
file_name.touch(exist_ok=True)
print(file_name)
print(file_name.exists())
with open(file_name,'w+') as f:
json.dump(self.data,f,indent=4)

Expand Down
5 changes: 1 addition & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,17 @@ class readme_main():
def __init__(self, config_path, readme_path) -> None:
self.config_path = Path(config_path)
self.readme_path = Path(readme_path)
print('debug step 1')
config = config_gen()
config.get_data()
config.gen_file(self.config_path)
print('debug step 2')
readme = readme_gen()
readme.add_config()
readme.gen_str()
readme.gen_file(self.readme_path)
print('debug step 3')
readme2ppt(self.readme_path)

if __name__ == "__main__":
config_path = input("Enter path where config is stored-> ")
readme_path = input("Enter path where readme is stored-> ")
file = readme_main(config_path, readme_path)
Fire(file)
#Fire(file)
9 changes: 2 additions & 7 deletions readme2ppt_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,7 @@ def readme2ppt(file_name):
# Load the file into file_content
file_content = [line for line in open(file_name,'r',encoding="utf-8")]
# Overwrite the file
print(Path(file_name).stem + "_ppt.md")
print(Path(file_name).stem)
file_name = Path(Path(file_name).stem + "_ppt.md")
file_name = Path(file_name)
file_name.touch(exist_ok=True)
file_name.exists()
with open(file_name, 'w+',encoding="utf-8") as writer:
writer.write(ppt_style)
for line in file_content:
Expand All @@ -160,5 +155,5 @@ def readme2ppt(file_name):
# Re-write the file at each iteration
writer.write(line)


readme2ppt("README.md")
if __name__ == "__main__":
readme2ppt("README.md")
6 changes: 0 additions & 6 deletions readme_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ def gen_str(self):
)

def gen_file(self, file_name="README.md"):
print(file_name)
file_name = Path(file_name)
print(file_name)
file_name.touch(exist_ok=True)
print(file_name)
print(file_name.exists())
with open(file_name, "w+", encoding="utf-8") as f:
f.write(self.doc)

Expand Down

0 comments on commit 3660d77

Please sign in to comment.