mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
gst-env: Copy instead of symlink on Windows
os.symlink needs admin privs in most cases. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/160>
This commit is contained in:
parent
d570c770ad
commit
77cd988ac8
1 changed files with 5 additions and 2 deletions
|
@ -160,8 +160,11 @@ def setup_gdb(options):
|
|||
python_paths.add(str(bdir / gdb_path))
|
||||
python_paths.add(os.path.join(options.srcdir, gdb_path))
|
||||
try:
|
||||
os.symlink(gdb_helper, str(autoload_path / os.path.basename(gdb_helper)))
|
||||
except FileExistsError:
|
||||
if os.name == 'nt':
|
||||
shutil.copy(gdb_helper, str(autoload_path / os.path.basename(gdb_helper)))
|
||||
else:
|
||||
os.symlink(gdb_helper, str(autoload_path / os.path.basename(gdb_helper)))
|
||||
except (FileExistsError, shutil.SameFileError):
|
||||
pass
|
||||
|
||||
gdbinit_line = 'add-auto-load-scripts-directory {}\n'.format(bdir / 'gdb-auto-load')
|
||||
|
|
Loading…
Reference in a new issue