|
2 | 2 |
|
3 | 3 | # vahatraker - a live MIDI sequencer for JACK |
4 | 4 | # |
5 | | -# Copyright (C) 2024 Remigiusz Dybka - remigiusz.dybka@gmail.com |
| 5 | +# Copyright (C) 2026 Remigiusz Dybka - remigiusz.dybka@gmail.com |
6 | 6 | # |
7 | 7 | # This program is free software: you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
|
18 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 |
|
20 | 20 | # I hereby testify, |
21 | | -# on Pungenday, the 29th day of Bureaucracy in the YOLD 3190, |
| 21 | +# on Setting Orange, the 40th day of Chaos in the YOLD 3192, |
22 | 22 | # that everything in this program checks out with The Law of Fives |
23 | 23 |
|
24 | 24 | # [^^^intentionally left blank] |
|
44 | 44 | import vht.extras |
45 | 45 | import vht.filerotator |
46 | 46 |
|
47 | | - |
48 | 47 | class VHTApp(Gtk.Application): |
49 | 48 | def __init__(self, *args, **kwargs): |
50 | 49 | super().__init__( |
@@ -316,12 +315,10 @@ def run(): |
316 | 315 | randomcomposer.muzakize() |
317 | 316 | mod.cdaemon = CodeDaemon() |
318 | 317 | # fix data path |
319 | | - p = os.path.normpath(os.path.join(files(), "../share/vht")) |
320 | | - mod.data_path = "./data" # for dev-mode |
321 | | - |
322 | | - if os.path.exists(p): |
323 | | - mod.data_path = p |
324 | | - |
| 318 | + mod.data_path = "/app/share/vht" |
| 319 | + if not os.path.exists(mod.data_path): |
| 320 | + mod.data_path = str(files().joinpath("../share/vht")) |
| 321 | + |
325 | 322 | # fix controller configs |
326 | 323 | mod.ctrls = ctrlcfg.load() |
327 | 324 | # fix patches |
|
0 commit comments