Skip to content

Commit

Permalink
fix: gcsim final read path
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Nov 30, 2023
1 parent 0ab6169 commit 039ddbf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gcsim/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ async def main():
await modify_script(path)
allow = []
for path in temp_path.iterdir():
if await run_gcsim(temp_path / path.name):
allow.append(path)
if await run_gcsim(path):
allow.append(path.name)
data = {}
for path in allow:
for filename in allow:
path = scripts_path / filename
async with aiofiles.open(path, "r", encoding="utf-8") as f:
data[path.stem] = await f.read()
async with aiofiles.open(data_path, "w", encoding="utf-8") as f:
Expand Down

0 comments on commit 039ddbf

Please sign in to comment.