Веб интерфейс для корректировки работы ASP, его интеграция с алгоритмами генерации
This commit is contained in:
parent
23edfea360
commit
c1e4b0e0f0
57 changed files with 2969 additions and 290 deletions
15
cad_generation/helper/fs.py
Normal file
15
cad_generation/helper/fs.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
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', encoding='utf-8',
|
||||
errors='ignore')
|
||||
f.write(data)
|
||||
f.close()
|
Loading…
Add table
Add a link
Reference in a new issue