14 Replies Latest reply: Sep 11, 2018 2:12 PM by Andy Ritting RSS

    Execute python script in load script

    Marko Zadravec

      Hi,

       

      I am trying to run python script inside my load script in Qlik Sense app.

      I know that I need to put OverrideScriptSecurity=1 in Settings.ini

       

      I put

       

      Execute py lib://python/getSolution.py 12 'ble';

       

      and I get no error in qlik sense, bu script is not executed (I think) because inside the script I have

       

      f = open("file.xml", "wb")

      f.write(xml)

      f.close

       

      and file is not saved.

       

      If I run script from terminal, then script is properly executed.

       

      What could go wrong?