Skip to content
Snippets Groups Projects
Commit 77cd988a authored by Nirbheek Chauhan's avatar Nirbheek Chauhan :ant:
Browse files

gst-env: Copy instead of symlink on Windows

os.symlink needs admin privs in most cases.

Part-of: <!160>
parent d570c770
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment