Runtime error R6034 in embedded Python application

前端 未结 13 1246
暗喜
暗喜 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:02

    A more general solution is:

    import os
    os.environ['path'] = ";".join(
        [path for path in os.environ['path'].split(";") 
         if "msvcr90.dll" not in map((lambda x:x.lower()), os.listdir(path))])
    

    (I had the same problem with VanDyke SecureCRT)

提交回复
热议问题