Jump to content

"Access is denied" using cm.exe to undoChange


FuzzkingCool

Recommended Posts

I am running into an error while running the following command through a python subprocess:

 "C:\Program Files\PlasticSCM5\client\cm.exe" undochange . -R

The error is reported with the error number 13, and the message: "Access is denied"

When I run the command in the workspace directory using cmd.exe, it works.

I have tried setting the cm.exe to "Run as administrator" by default, but it did not help.

Here is some example code that should recreate this issue:

import subprocess

workspacePath = r"C:\Users\secretprod\wkspaces\studio_test"

cmd = [ r"C:\Program Files\PlasticSCM5\client\cm.exe" , "undochange" , "." , "-R" ]

try:

    proc = subprocess.Popen( cmd                                  ,
                             stdin              = subprocess.PIPE ,
                             stdout             = subprocess.PIPE ,
                             stderr             = subprocess.PIPE ,
                             cwd                = workspacePath   ,
                             universal_newlines = True            )

except OSError as e:

    errorReports = e.errno , e.strerror , e.filename

    raise Exception(
        "An error occurred while trying to run the PlasticSCM cli: %s" % str( errorReports ) )

 

 

Any tips or help would be much appreciated!

Thanks!

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...