summaryrefslogtreecommitdiff
path: root/foreign/utility/client_root.py
blob: 8b7df7d3235970eb49885e36425f03544c211ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import getpass
import os


def client_root():
	user = getpass.getuser()
	drive = 'C'
	
	paths = {
		f'{drive}:\\Users\\{user}\\AppData\\Roaming',
		f'{drive}:\\Users\\{user}\\AppData\\Local',
		f'{drive}:\\Users\\{user}',
		os.getcwd()
	}

	for path in paths:
		if os.path.isdir(path):
			return path