Runtime error R6034 in embedded Python application

前端 未结 13 1195
暗喜
暗喜 2020-12-04 10:06

I am working on an application which uses Boost.Python to embed the Python interpreter. This is used to run user-generated \"scripts\" which interact with the main program.<

相关标签:
13条回答
  • 2020-12-04 11:03

    Thanks for the solution. I just little modified this sample code as the path variable in my system contains the string "ICLS CLIENT" instead of "iCLS Client"

    import os
    # print os.environ['PATH']
    # Remove CLS Client from system path
    if os.environ['PATH'].find("iCLS Client") >= 0 or os.environ['PATH'].find("ICLS CLIENT") >= 0:
        os.environ['PATH'] = "".join([it for it in os.environ['PATH'].split(";") if not (it.find("iCLS Client")>0 or it.find("ICLS CLIENT")>0)])
    
    0 讨论(0)
提交回复
热议问题