framework/cad_generation/helper/fs.py

15 lines
261 B
Python
Raw Normal View History

2023-06-30 21:47:53 +03:00
import os
import json
class FS:
def readJSON(path: str):
return json.loads((open(path)).read())
def writeFile(data, filePath, fileName):
file_to_open = filePath + fileName
f = open(file_to_open, 'w', )
f.write(data)