asm4 pddl
This commit is contained in:
parent
3d3a063a5d
commit
748fcd1351
8 changed files with 304 additions and 0 deletions
15
pddl/helper/fs.py
Normal file
15
pddl/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', )
|
||||
|
||||
f.write(data)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue