1#-----------------------------------------------------------------------------
2# Copyright (c) 2014-2019, PyInstaller Development Team.
3#
4# Distributed under the terms of the GNU General Public License with exception
5# for distributing bootloader.
6#
7# The full license is in the file COPYING.txt, distributed with this software.
8#-----------------------------------------------------------------------------
9
10
11"""
12This test tests on Windows the option --uac-admin with onefile mode.
13
141) Upon execution the exe should ask for admin privileges.
152) Only admin user has access to path C:\Windows\Temp and this test
16   should not fail when accessing this path.
17
18"""
19
20
21# Accessing directory where only admin has access.
22import os
23admin_dir = os.path.join(os.environ.get('SystemRoot','C:\\windows'), 'temp')
24os.listdir(admin_dir)
25