NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically accessing SequenceFilePath of a Sequence Call Step.

Solved!
Go to solution

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:NIHELP.PNG

 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.

0 Kudos
Message 1 of 2
(2,371 Views)
Solution
Accepted by topic author RaduH

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.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 2
(2,355 Views)