mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-20 11:30:10 +01:00
16 lines
358 B
Python
16 lines
358 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
# Copyright 2022 Collabora Ltd.
|
||
|
|
# SPDX-License-Identifier: MIT
|
||
|
|
|
||
|
|
import os
|
||
|
|
import sys
|
||
|
|
|
||
|
|
# Note that we can't create the XDG_RUNTIME_DIR with permissions 0700
|
||
|
|
# on MSYS2, which rejects attempts to change permissions, hence "|| true".
|
||
|
|
os.makedirs(sys.argv[1], exist_ok=True)
|
||
|
|
|
||
|
|
try:
|
||
|
|
os.chmod(sys.argv[1], 0o700)
|
||
|
|
except OSError:
|
||
|
|
pass
|