-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from fenix-hub/v0.8.7
V0.8.7
- Loading branch information
Showing
16 changed files
with
235 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import glob,zipfile,shutil,os,sys,tarfile | ||
|
||
archive = sys.argv[1] | ||
destination = sys.argv[2] | ||
|
||
if archive.endswith('.zip'): | ||
with zipfile.ZipFile(archive) as zip: | ||
for zip_info in zip.infolist(): | ||
if zip_info.filename == zip.infolist()[0].filename : | ||
continue | ||
zip_info.filename = zip_info.filename.replace(zip.infolist()[0].filename,'') | ||
zip_info.filename.replace(zip.infolist()[0].filename,'') | ||
elif archive.endswith('.tar.gz'): | ||
tar = tarfile.open(archive) | ||
for member in tar.getmembers(): | ||
if member.name == tar.getmembers()[0].name: | ||
continue | ||
member.name = member.name.replace(tar.getmembers()[0].name+'/','') | ||
tar.extract(member, destination) | ||
import glob,zipfile,shutil,os,sys,tarfile | ||
|
||
archive = sys.argv[1] | ||
destination = sys.argv[2] | ||
|
||
if archive.endswith('.zip'): | ||
with zipfile.ZipFile(archive) as zip: | ||
for zip_info in zip.infolist(): | ||
if zip_info.filename == zip.infolist()[0].filename : | ||
continue | ||
zip_info.filename = zip_info.filename.replace(zip.infolist()[0].filename,'') | ||
zip_info.filename.replace(zip.infolist()[0].filename,'') | ||
elif archive.endswith('.tar.gz'): | ||
tar = tarfile.open(archive) | ||
for member in tar.getmembers(): | ||
if member.name == tar.getmembers()[0].name: | ||
continue | ||
member.name = member.name.replace(tar.getmembers()[0].name+'/','') | ||
tar.extract(member, destination) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
tool | ||
extends Node | ||
|
||
|
||
var Client : HTTPClient = HTTPClient.new() | ||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
pass # Replace with function body. | ||
|
||
func check_connection() -> bool: | ||
var connection : int = Client.connect_to_host("www.githubstatus.com") | ||
assert(connection == OK) # Make sure connection was OK. | ||
|
||
# Wait until resolved and connected. | ||
print("[GitHub Integration] Connecting to API, please wait...") | ||
while Client.get_status() == HTTPClient.STATUS_CONNECTING or Client.get_status() == HTTPClient.STATUS_RESOLVING: | ||
Client.poll() | ||
OS.delay_msec(500) | ||
|
||
if Client.get_status() == HTTPClient.STATUS_CONNECTED: | ||
print("[GitHub Integration] Connection to API successful") | ||
return true | ||
else: | ||
printerr("[GitHub Integration] Connection to API unsuccessful, exited with error %s, staus: %s" % | ||
[Client.get_response_code(), Client.get_status()]) | ||
return false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters