Posts

Showing posts from December 4, 2018

Cilici

Image
Questa voce o sezione sull'argomento storia antica non cita le fonti necessarie o quelle presenti sono insufficienti . Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. Questa voce sull'argomento popoli antichi è solo un abbozzo . Contribuisci a migliorarla secondo le convenzioni di Wikipedia. I Cilici erano un popolo che occupava la regione dell'Asia Minore chiamata Cilicia. Secondo la mitologia greca erano discendenti da Cilice, figlio di Agenore, che nel corso di varie peregrinazioni per cercare la sorella Europa arrivò in quella regione. Dopo la conquista romana, la Cilicia divenne una provincia romana e i cilici assimilati. Portale Storia : accedi alle voci di Wikipedia che trattano di storia This page is only for reference, If you need detailed information, please check here

Python 3.6.6 Popen, using sys.exit in subprocess, how to suppress the traceback/exceptions

Image
up vote 1 down vote favorite I have a class with some functions that basically do output checks on data, the functions of this class are called using a subprocess. Now if the output check fails the subprocess has a sys.exit call with a different code depending on which check it failed. In the main code I have this: try: exitCode = 0 #import module for current test teststr = os.path.splitext(test)[0] os.chdir(fs.scriptFolder) test = __import__(teststr) #delete old output folder and create a new one if os.path.isdir(fs.outputFolder): rmtree(fs.outputFolder) os.mkdir(fs.outputFolder) # run the test passed into the function as a new subprocess os.chdir(fs.pythonFolder) myEnv=os.environ.copy() myEnv["x"] = "ON" testSubprocess = Popen(['