PDA

View Full Version : github commit directly from vizard script


pitbool
06-09-2017, 01:13 PM
Hi,

In our work, we want to be able to commit to a github repo the updates to our data file(s), as and when that happens, while the vizard script is running for our study.

We explored running a separate windows powershell script, which will monitor changes to data files, and also commit to the github repo. But it increases the overhead for our study coordinator.

To keep things more organized and clean, it would be better to be able to integrate that powershell script within our vizard script, so that we can monitor and commit the changes to our datafile(s) directly to github from the vizard script itself.

We searched on vizard forum but couldn't find any prior work along these lines. Any pointers or advice on how to achieve this?

Thanks,
-Bireswar

pitbool
06-09-2017, 02:52 PM
Hi,

A quick update: google searches revealed some ways to invoke a powershell script from python script (https://stackoverflow.com/questions/21944895/running-powershell-script-within-python-script-how-to-make-python-print-the-pow, https://stackoverflow.com/questions/14508809/run-powershell-function-from-python-script), which we are going to try - will update here what we find, if we get a solution.

-Bireswar

Vaquero
07-26-2017, 11:12 AM
I don't know which features of the Vizard IDE you are using. Anyway, I did setup PyCharm to start my scripts in Vizard and I can use its git integration.
I even set up its python external documentation to search for a vizard command in the documentation, if I need to. I just don't know how to setup debugging.