Browse Source

Fix finding theme so in plugin mode

tags/1.9.4
falkTX 10 years ago
parent
commit
7e9bc90589
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      source/carla_style.py

+ 3
- 1
source/carla_style.py View File

@@ -57,8 +57,10 @@ class CarlaApplication(object):
elif CWDl.endswith("resources"): elif CWDl.endswith("resources"):
if CWDl.endswith("native-plugins%sresources" % os.sep): if CWDl.endswith("native-plugins%sresources" % os.sep):
stylesDir = os.path.abspath(os.path.join(CWD, "..", "..", "..", "..", "bin")) stylesDir = os.path.abspath(os.path.join(CWD, "..", "..", "..", "..", "bin"))
elif "carla-native.lv2" in sys.argv[0]:
stylesDir = os.path.abspath(os.path.join(CWD, "..", "..", "..", "lib", "lv2", "carla-native.lv2"))
else: else:
stylesDir = os.path.abspath(os.path.join(CWD, ".."))
stylesDir = os.path.abspath(os.path.join(CWD, "..", "..", "..", "lib", "carla"))


elif CWDl.endswith("source"): elif CWDl.endswith("source"):
stylesDir = os.path.abspath(os.path.join(CWD, "..", "bin")) stylesDir = os.path.abspath(os.path.join(CWD, "..", "bin"))


Loading…
Cancel
Save