My application dll's are not properly loaded when launching application through Python Script -


i have used below script launch application.

import subprocess subprocess.call('c:\program files (x86)\terrain\track3d\track™.exe') 

i able launch application few dll's of application not loaded. application launches when launched manually.

there many errors displayed out of few :

1) failed load type modules schedulescontroller. error was: not load file or assembly 'schedules.dll' or 1 of dependancies. system cannot find file specified. system.io.file not found exception.

2) error window has title "microsoft.practices.prism.moduletypeloadingexception"

could give me solution problem ?

a trait of python on windows forward slashes in paths need escaped, , directory or file names containing spaces need enclosed in quotes. further, have unicode (tm) @ end of filename.

    import subprocess     subprocess.call('c:\\"program files (x86)"\\terrain\\track3d\\r"track™.exe"') 

the 3 changes made are:

  • python on windows requires '\\' not '\' in path names
  • file / directory names spaces need quotes
  • r"track™.exe" instructs python use raw string (to correctly represent (tm))

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -