Skip to content

Commit 08f1d0f

Browse files
author
tociek
committed
Fix for systems with modified hostname
Different way of determining whether plugin runs on OE or other system
1 parent e65ca89 commit 08f1d0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/lib/HyperPyCon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def save_config_file(self,content,folder,file_name):
8383
f.close()
8484

8585
def overwrite_default_config(self):
86-
if os.uname()[1] == "OpenELEC":
86+
if os.path.isdir("/storage/.config"):
8787
config_folder = "/storage/.config/"
8888
else:
8989
config_folder = "/etc/"

0 commit comments

Comments
 (0)