1
0
mirror of https://github.com/spacebarchat/spacebarchat.git synced 2024-11-25 11:52:56 +01:00

Merge pull request #151 from BigweldIndustries/patch-1

Close files after use for setup script
This commit is contained in:
Erkin Alp Güney 2022-04-09 14:29:36 +03:00 committed by GitHub
commit 6d0ffa42a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
# script to: # Script to:
# - get all repo git urls from the fosscord orga and format them to make the process of updating the setup script less tiresome # - Get all repo git urls from the fosscord orga and format them to make the process of updating the setup script less tiresome
# - create a workspace file for VScode # - Create a workspace file for VScode
import requests import requests
@ -17,6 +17,8 @@ for repo in response:
with open("clone_all_repos.sh","w") as f: with open("clone_all_repos.sh","w") as f:
f.write(repos) f.write(repos)
f.close()
with open("fosscord.code-workspace", "w") as f: with open("fosscord.code-workspace", "w") as f:
f.write(str(workspace).replace("'",'"')) f.write(str(workspace).replace("'",'"'))
f.close()