1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
--- a/utils/E-Pyo.py
+++ b/utils/E-Pyo.py
@@ -273,7 +273,7 @@
elif WIN_APP_BUNDLED:
EXAMPLE_PATH = os.path.join(os.getcwd(), "Resources", "examples")
else:
- EXAMPLE_PATH = os.path.join(os.getcwd(), "../examples")
+ EXAMPLE_PATH = "/usr/share/doc/python-pyo/examples"
EXAMPLE_FOLDERS = [folder.capitalize() for folder in os.listdir(EXAMPLE_PATH) if folder[0] != "." and folder not in ["snds", "fft"]]
EXAMPLE_FOLDERS.append("FFT")
EXAMPLE_FOLDERS.sort()
@@ -290,7 +290,7 @@
for file in files:
shutil.copy(os.path.join(os.getcwd(), "Resources", "snippets", rep, file), os.path.join(SNIPPETS_PATH, rep))
else:
- files = [f for f in os.listdir(os.path.join(os.getcwd(), "snippets", rep)) if f[0] != "."]
+ files = [f for f in os.listdir(os.path.join("/usr/lib/python-pyo", "snippets", rep)) if f[0] != "."]
for file in files:
shutil.copy(os.path.join(os.getcwd(), "snippets", rep, file), os.path.join(SNIPPETS_PATH, rep))
SNIPPETS_CATEGORIES = [rep for rep in os.listdir(SNIPPETS_PATH) if os.path.isdir(os.path.join(SNIPPETS_PATH, rep))]
@@ -321,12 +321,12 @@
for file in files:
shutil.copy(os.path.join(os.getcwd(), "Resources", "styles", file), os.path.join(STYLES_PATH, file))
else:
- files = [f for f in os.listdir(os.path.join(os.getcwd(), "styles")) if f[0] != "."]
+ files = [f for f in os.listdir(os.path.join("/usr/lib/python-pyo", "styles")) if f[0] != "."]
for file in files:
- shutil.copy(os.path.join(os.getcwd(), "styles", file), os.path.join(STYLES_PATH, file))
+ shutil.copy(os.path.join("/usr/lib/python-pyo", "styles", file), os.path.join(STYLES_PATH, file))
DEFAULT_STYLE = os.path.join(STYLES_PATH, "Default")
if not os.path.isfile(os.path.join(STYLES_PATH, "Default")):
- shutil.copy(os.path.join(os.getcwd(), "styles", "Default"), DEFAULT_STYLE)
+ shutil.copy(os.path.join("/usr/lib/python-pyo", "styles", "Default"), DEFAULT_STYLE)
if "pref_style" in PREFERENCES:
PREF_STYLE = os.path.join(ensureNFD(STYLES_PATH), PREFERENCES["pref_style"])
else:
@@ -340,7 +340,7 @@
with open(MARKERS_FILE, "w") as f:
f.write("=\n")
-BACKGROUND_SERVER_DEFAULT_ARGS = 'sr=44100, nchnls=2, buffersize=256, duplex=1, audio="portaudio", jackname="pyo"'
+BACKGROUND_SERVER_DEFAULT_ARGS = 'sr=44100, nchnls=2, buffersize=256, duplex=1, audio="jack", jackname="pyo"'
BACKGROUND_SERVER_ARGS = PREFERENCES.get("background_server_args", BACKGROUND_SERVER_DEFAULT_ARGS)
################## TEMPLATES ##################
@@ -6248,4 +6248,4 @@
pass
app = EPyoApp(redirect=False)
- app.MainLoop()
\ No newline at end of file
+ app.MainLoop()
|