Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#!/usr/bin/env python3
#
# test.py
# Copyright (c) 2020 Raphael DINGE
#
#Tab=3########################################################################
##### IMPORT #################################################################
from __future__ import print_function
import os
import platform
import subprocess
import sys
##############################################################################
if sys.version_info < (3, 7):
print ('This script requires python 3.7 or greater.', file=sys.stderr)
sys.exit (1)
PATH_THIS = os.path.abspath (os.path.dirname (__file__))
"""
==============================================================================
Name : python3_cmd
==============================================================================
"""
def python3_cmd ():
if platform.system () == 'Linux':
return 'python3'
elif platform.system () == 'Darwin':
return 'python3'
elif platform.system () == 'Windows':
return 'C:/Python35-x64/python.exe'
##############################################################################
if __name__ == '__main__':
subprocess.check_call (
[python3_cmd (), '-m', 'unittest', 'discover'],
cwd = PATH_THIS
)
1c962d8cfThis file is pinned to the selected release. Download the original to open it in your design tool.