![]() ![]() ![]() Scriptname = os.path.basename(scriptname) Returns the output from the matlab commands The function I am using is below: def runMatlab(self,dirname,scriptname):Ĭommands: the list of command lines for matlab I am wondering how I could rewrite the code to ensure that the python script waits for matlab subprocess to terminate. Under Mac/Linux, it seems that python code waits until the matlab script terminates however, under windows, the code simply proceeds before the matlab script terminates which crashes the application. The code starts matlab subprocesses by an os.system(command). ![]() A major part of the python code's task is to generate and run certain matlab scripts. I am using a particular python code base which, in a Linux system, solves the problem I am working on (I am using Windows). First of all, I'm sorry if my question seems silly, but I am very unfamiliar with Python. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |