Skip to main content
Solved

Startup Command Line Command


courtney_m
Contributor
Forum|alt.badge.img+12

Hello,

I have configured a SystemCaller to delete all files and sub-directories within a specified directory, without deleting the specified directory. Originally, the plan was to have this at the end of the workspace, but now, we want the directory to be emptied at the start of the workspace, before any of the readers are initiated. I know this can be done using a startup Python script, but I was wondering if there is a way to call a startup command line command (so I can use the code I already wrote). I thought about changing my first reader to a FeatureReader, then using a creator to initiate the SystemCaller, then have the SystemCaller initiate the FeatureReader... but I was wondering if there was a more direct way to do this?

Thanks!

Courtney

Best answer by courtney_m

Thank you for the responses! I ended up writing a Python Startup script:

View original
Did this help you find an answer to your question?

4 replies

david_r
Celebrity
  • December 8, 2016

Creator -> SystemCaller -> FeatureReader sounds like a good alternative to the startup script, if that is what you want to avoid.


takashi
Influencer
  • December 9, 2016

Alternatively, a Python method such as "call" from the subprocess module might help you to run the existing command line in the startup Python script.


courtney_m
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • Best Answer
  • February 9, 2017

Thank you for the responses! I ended up writing a Python Startup script:


david_r
Celebrity
  • February 9, 2017
courtney_m wrote:

Thank you for the responses! I ended up writing a Python Startup script:

Nice one, thanks for sharing.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings