|
|
@@ -8,7 +8,10 @@ import __main__ as MAIN
|
|
|
from collections import OrderedDict
|
|
|
from lib.cprint import *
|
|
|
|
|
|
-HOME = os.getenv('HOME')
|
|
|
+from pathlib import Path
|
|
|
+home_dir = str(Path.home())
|
|
|
+
|
|
|
+
|
|
|
|
|
|
def _fixture_decode_sav_line(line):
|
|
|
out = None
|
|
|
@@ -171,7 +174,7 @@ def index_fixtures():
|
|
|
#def _fixture_create_import_list(path=None):
|
|
|
def _fixture_load_import_list(path=None):
|
|
|
if not path:
|
|
|
- path = "/home/user/LibreLight/show"
|
|
|
+ path = home_dir+"/LibreLight/show"
|
|
|
|
|
|
blist = []
|
|
|
lsd = os.listdir(path)
|
|
|
@@ -300,7 +303,7 @@ def _load_fixture_list(mode="None"):
|
|
|
blist = []
|
|
|
|
|
|
if mode == "USER":
|
|
|
- path = HOME+"/LibreLight/fixtures/"
|
|
|
+ path = home_dir+"/LibreLight/fixtures/"
|
|
|
|
|
|
elif mode == "GLOBAL":
|
|
|
path="/opt/LibreLight/Xdesk/fixtures/"
|