-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_paths.py
42 lines (29 loc) · 1.08 KB
/
app_paths.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
import sys
class DefinePathsClass:
@staticmethod
def create_resource_path(fn):
# application_path = sys._MEIPASS
application_path = os.path.dirname(sys.argv[0])
path_icon = os.path.join(application_path, "line-icons", fn)
return path_icon
@staticmethod
def create_reference_paths(fn):
# application_path = sys._MEIPASS
application_path = os.path.dirname(sys.argv[0])
subpath = ""
path_icon = os.path.join(application_path, subpath, "reference", fn)
return path_icon
@staticmethod
def create_configuration_paths(fn):
# application_path = sys._MEIPASS
application_path = os.path.dirname(sys.argv[0])
subpath = ""
path_icon = os.path.join(application_path, subpath, "configuration", fn)
return path_icon
@staticmethod
def create_programs_paths():
# application_path = sys._MEIPASS
application_path = os.path.dirname(sys.argv[0])
path_programs = os.path.join(application_path, "programs")
return path_programs