Commit c7a19ba3 authored by Paul Bonser's avatar Paul Bonser

Fix data directory search path

parent df6850b1
...@@ -29,9 +29,9 @@ import pycam.Utils.log ...@@ -29,9 +29,9 @@ import pycam.Utils.log
DATA_DIR_ENVIRON_KEY = "PYCAM_DATA_DIR" DATA_DIR_ENVIRON_KEY = "PYCAM_DATA_DIR"
FONT_DIR_ENVIRON_KEY = "PYCAM_FONT_DIR" FONT_DIR_ENVIRON_KEY = "PYCAM_FONT_DIR"
DATA_BASE_DIRS = [os.path.realpath(os.path.join(os.path.dirname(__file__), DATA_BASE_DIRS = [os.path.realpath(os.path.join(os.path.dirname(__file__),
os.pardir, os.pardir, os.pardir, "share")), os.pardir, os.pardir, "share")),
os.path.join(sys.prefix, "local", "share", "pycam"), os.path.join(sys.prefix, "local", "share", "pycam"),
os.path.join(sys.prefix, "share", "pycam")] os.path.join(sys.prefix, "share", "pycam")]
FONTS_SUBDIR = "fonts" FONTS_SUBDIR = "fonts"
UI_SUBDIR = "ui" UI_SUBDIR = "ui"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment