Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
franck403 committed Feb 21, 2024
1 parent 1cedbd4 commit f745d84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main/pyact/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def buildFile(self,path):
else:
print("Error fetching data:", response.status_code, response.reason)
try:
n = open('/'.join(path.split('/')[1:-1]),'w')
n = open(path,'w')
except:
n = open('/'.join(path.split('\\')[1:-1]),'w')
n = open(path,'w')
n.write(js)
n.close()
4 changes: 2 additions & 2 deletions pyact/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def buildFile(self,path):
else:
print("Error fetching data:", response.status_code, response.reason)
try:
n = open(path.split('/')[1:-1],'w')
n = open(path,'w')
except:
n = open(path.split('\\')[1:-1],'w')
n = open(path,'w')
n.write(js)
n.close()

0 comments on commit f745d84

Please sign in to comment.