-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
15 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
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,13 +1,4 @@ | ||
try: | ||
import bpy | ||
bpy.ops.preferences.addon_install(filepath="bleMD.zip",overwrite=True) | ||
bpy.ops.preferences.addon_enable(module='bleMD') | ||
|
||
except Exception as e: | ||
print("Aha I caught an exception") | ||
print(e) | ||
raise e | ||
### You must print this line, otherwise the Github action will think | ||
### the script failed. | ||
#print("SCRIPT COMPLETED SUCCESSFULLY") | ||
|
||
import bpy | ||
bpy.ops.preferences.addon_install(filepath="bleMD.zip",overwrite=True) | ||
bpy.ops.preferences.addon_enable(module='bleMD') | ||
print("---successful completion---") |
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,20 @@ | ||
import subprocess | ||
import sys | ||
|
||
try: | ||
output = subprocess.check_output(sys.argv[1:]) | ||
print(output.decode('ascii')) | ||
if not "---successful completion---" in output.decode('ascii'): | ||
raise Exception("Script errored out") | ||
print("Successful completion") | ||
except FileNotFoundError as e: | ||
print("could not find file", e)#, e.output) | ||
raise e | ||
except subprocess.CalledProcessError as e: | ||
print("error code", e.returncode)#, e.output) | ||
raise e | ||
except Exception as e: | ||
print(e) | ||
raise e | ||
|
||
print("Ah yes, definitely successful") |