Menu

#104 Unable to run Output /call exectuable

4.6.0
closed
cb4960
None
2019-08-17
2019-08-08
David
No

I am having difficulty running the output into a call exectuable for python. I have python loaded on my windows computer and I cant get any python or cmd program to initiate after obtaining the output. Is anyone else able to get the call exectuable function to work at all? How did you do so? Appreciate the guidance.

Discussion

  • cb4960

    cb4960 - 2019-08-10

    Try using the full path to python.exe. For example:

    C:\Anaconda3\python.exe "G:\Temp\Temp\c2t_test\test.py" "${capture}" "${translation}"
    

    test.py:

    import sys
    f = open("G:/Temp/Temp/c2t_test/test.txt", "w")
    f.write("Arguments: " + str(sys.argv))
    f.close()
    

    test.txt (output):

    Arguments: ['G:\\Temp\\Temp\\c2t_test\\test.py', 'I am having difficulty', 'Ich habe Schwierigkeiten']
    
     
  • cb4960

    cb4960 - 2019-08-10
    • status: open --> pending
    • assigned_to: Christopher Brochtrup
     
  • cb4960

    cb4960 - 2019-08-17
    • status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB