|
@ -18,11 +18,9 @@ current_OS = platform.system() |
|
|
#exit(0) |
|
|
#exit(0) |
|
|
|
|
|
|
|
|
build_type = os.environ.get("BUILD_TYPE", 'Not Set') |
|
|
build_type = os.environ.get("BUILD_TYPE", 'Not Set') |
|
|
if not(build_type == 'upload' or build_type == 'traceback' or build_type == 'Not Set') : |
|
|
if build_type == 'upload' or build_type == 'traceback' or build_type == 'Not Set' : |
|
|
exit(0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if current_OS == 'Windows': |
|
|
if current_OS == 'Windows': |
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
# |
|
|
# platformio.ini will accept this for a Windows upload port designation: 'upload_port = L:' |
|
|
# platformio.ini will accept this for a Windows upload port designation: 'upload_port = L:' |
|
@ -71,7 +69,7 @@ if current_OS == 'Windows': |
|
|
print '\nUnable to find destination disk. File must be copied manually. \n' |
|
|
print '\nUnable to find destination disk. File must be copied manually. \n' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if current_OS == 'Linux': |
|
|
if current_OS == 'Linux': |
|
|
|
|
|
|
|
|
# |
|
|
# |
|
|
# platformio.ini will accept this for a Linux upload port designation: 'upload_port = /media/media_name/drive' |
|
|
# platformio.ini will accept this for a Linux upload port designation: 'upload_port = /media/media_name/drive' |
|
@ -112,7 +110,7 @@ if current_OS == 'Linux': |
|
|
print '\nUnable to find destination disk. File must be copied manually. \n' |
|
|
print '\nUnable to find destination disk. File must be copied manually. \n' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if current_OS == 'Darwin': # MAC |
|
|
if current_OS == 'Darwin': # MAC |
|
|
|
|
|
|
|
|
# |
|
|
# |
|
|
# platformio.ini will accept this for a OSX upload port designation: 'upload_port = /media/media_name/drive' |
|
|
# platformio.ini will accept this for a OSX upload port designation: 'upload_port = /media/media_name/drive' |
|
|