12-07-2017 07:12 AM
Hello, I'm using TestStand via Python and I want to access the File Path of a Sequence Call Step;
I'm using : MainSEQ_ref.GetStep(3,0).Module.SequenceFilePath and it gives me only the File name;
(http://zone.ni.com/reference/en-XX/help/370052H-01/tsapiref/reftopics/execution_sequencefilepath_p/)
Example for this step:
MainSEQ_ref.GetStep(3,0).Module.SequenceFilePath returns : u'Test8000.seq' , not the full path that is below: "H:\TheReviewer\Test8000.seq"
Is there a way to programmticly get the full path of the sequence file?
Thank you.
Solved! Go to Solution.
12-07-2017 09:03 AM
you could use Engine.FindFile method.
Engine.FindFile ( fileToFind, absolutePath, userCancelled, promptOption = FindFile_PromptHonorUserPreference, srchListOption = FindFile_AddDirToSrchList_Ask, isCommand = False, [currentSequenceFile])
That will use your search directories to get the full path.