File: meson_post_install.py

package info (click to toggle)
gnome-session 49.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,716 kB
  • sloc: ansic: 7,392; xml: 591; python: 125; makefile: 48; sh: 42
file content (14 lines) | stat: -rw-r--r-- 353 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3

import os
import shutil
import sys

if os.environ.get('DESTDIR'):
  install_root = os.environ.get('DESTDIR') + os.path.abspath(sys.argv[1])
else:
  install_root = sys.argv[1]

src = os.path.join(install_root, 'xsessions', 'gnome-copy.desktop')
dst = os.path.join(install_root, 'xsessions', 'gnome.desktop')
shutil.move(src, dst)