Skip to content

Commit 2aaa443

Browse files
authored
Merge pull request #18 from joshschmelzle/patch-6
update config file location for profiler fpms app
2 parents d8f9e92 + a37fdc4 commit 2aaa443

File tree

1 file changed

+1
-7
lines changed
  • BakeBit/Software/Python/modules

1 file changed

+1
-7
lines changed

BakeBit/Software/Python/modules/apps.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import time
22
import os.path
33
import subprocess
4-
import pkgutil
54
import bakebit_128_64_oled as oled
65
import sys
76

@@ -72,12 +71,7 @@ def profiler_ctl(self, g_vars, action="status"):
7271
g_vars['result_cache'] = True
7372
return
7473

75-
# get path to the config file
76-
sys.path.append('/opt/wlanpi/pipx/venvs/profiler2/lib/python3.7/site-packages')
77-
package = pkgutil.get_loader("profiler2")
78-
entry_point = package.get_filename()
79-
profiler_dir = os.path.split(entry_point)[0]
80-
config_file = "{}/config.ini".format(profiler_dir)
74+
config_file = "/etc/profiler2/config.ini"
8175

8276
dialog_msg = "Unset"
8377
item_list = []

0 commit comments

Comments
 (0)