mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Add Workspace.write_python_script().
This commit is contained in:
parent
6cc5cca1fb
commit
f3bfa1cff7
1 changed files with 3 additions and 0 deletions
|
|
@ -45,6 +45,9 @@ class Workspace(object):
|
|||
def write_script(self, *path, **kwargs):
|
||||
return self._write_script(path, **kwargs)
|
||||
|
||||
def write_python_script(self, *path, **kwargs):
|
||||
return self._write_script(path, executable=sys.executable, **kwargs)
|
||||
|
||||
def lockfile(self, filename, timeout=1.0):
|
||||
_timeout = timeout
|
||||
filename = self.resolve(filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue