pd4web 2.2.6__tar.gz → 2.2.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. {pd4web-2.2.6 → pd4web-2.2.7}/PKG-INFO +1 -1
  2. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web/Pd4Web.py +25 -2
  3. {pd4web-2.2.6 → pd4web-2.2.7}/pyproject.toml +1 -1
  4. {pd4web-2.2.6 → pd4web-2.2.7}/LICENSE +0 -0
  5. {pd4web-2.2.6 → pd4web-2.2.7}/README.md +0 -0
  6. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/.clang-format +0 -0
  7. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/.prettierrc +0 -0
  8. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/.yamlftm +0 -0
  9. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/Libraries.yaml +0 -0
  10. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/ambi~.cmake +0 -0
  11. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/cyclone.cmake +0 -0
  12. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/earplug.cmake +0 -0
  13. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/else.cmake +0 -0
  14. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/libpd.cmake +0 -0
  15. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/o.scofo~.cmake +0 -0
  16. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/.git +0 -0
  17. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/.github/workflows/c-cpp.yml +0 -0
  18. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/.gitignore +0 -0
  19. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/CMakeLists.txt +0 -0
  20. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Examples/.clang-format +0 -0
  21. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Examples/CMakeLists.txt +0 -0
  22. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Examples/fft~/fft~-help.pd +0 -0
  23. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Examples/fft~/fft~.cpp +0 -0
  24. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Examples/simple/simple-help.pd +0 -0
  25. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Examples/simple/simple-patch.pd +0 -0
  26. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Examples/simple/simple.cpp +0 -0
  27. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Examples/simple~/simple~-help.pd +0 -0
  28. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Examples/simple~/simple~.cpp +0 -0
  29. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/LICENSE +0 -0
  30. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/README.md +0 -0
  31. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Tests/01.Deprecated-Functions/CMakeLists.txt +0 -0
  32. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/Tests/CMakeLists.txt +0 -0
  33. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pd.cmake/pd.cmake +0 -0
  34. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/pmpd.cmake +0 -0
  35. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Libraries/timbreIDLib.cmake +0 -0
  36. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Templates/1/bula.md +0 -0
  37. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Templates/1/index.html +0 -0
  38. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Templates/2/index.html +0 -0
  39. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Templates/2/sketch.js +0 -0
  40. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Templates/3/index.html +0 -0
  41. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Templates/4/index.html +0 -0
  42. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Templates/4/sketch.js +0 -0
  43. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Templates/5/index.html +0 -0
  44. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/Templates/5/tutorial.md +0 -0
  45. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/__init__.py +0 -0
  46. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/cmake-format.yaml +0 -0
  47. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/config.h +0 -0
  48. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/externals.cpp +0 -0
  49. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/favicon.ico +0 -0
  50. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/index.html +0 -0
  51. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/nogui.html +0 -0
  52. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web/Builder.py +0 -0
  53. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web/Compilers.py +0 -0
  54. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web/Libraries.py +0 -0
  55. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web/Objects.py +0 -0
  56. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web/Patch.py +0 -0
  57. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web/__init__.py +0 -0
  58. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web.cpp +0 -0
  59. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web.gitignore +0 -0
  60. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web.gui.js +0 -0
  61. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web.hpp +0 -0
  62. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web.midi.js +0 -0
  63. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web.style.css +0 -0
  64. {pd4web-2.2.6 → pd4web-2.2.7}/Sources/pd4web.threads.js +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pd4web
3
- Version: 2.2.6
3
+ Version: 2.2.7
4
4
  Summary: pd4web compiles PureData patches with external objects for Wasm, allowing to run entire patches in web browsers.
5
5
  Home-page: https://charlesneimog.github.io/pd4web
6
6
  Author: Charles K. Neimog
@@ -159,7 +159,19 @@ class Pd4Web:
159
159
  def RunBrowser(self):
160
160
  self.CWD = os.getcwd()
161
161
  self.PD4WEB_ROOT = os.path.dirname(os.path.realpath(__file__))
162
- self.APPDATA = os.path.join(self.PD4WEB_ROOT, "data")
162
+
163
+ if sys.platform == "win32":
164
+ program_data_path = os.getenv("PROGRAMDATA")
165
+ app_data_subfolder = os.path.join(program_data_path, "pd4web")
166
+ if not os.path.exists(app_data_subfolder):
167
+ os.makedirs(app_data_subfolder)
168
+ self.APPDATA = app_data_subfolder
169
+ elif sys.platform == "darwin":
170
+ self.APPDATA = os.path.join(os.path.expanduser("~/Library/"), "pd4web")
171
+ elif sys.platform == "linux":
172
+ self.APPDATA = os.path.join(os.path.expanduser("~/.local/share"), "pd4web")
173
+ else:
174
+ self.exception("Unsupported platform")
163
175
 
164
176
  emccRun = self.APPDATA + "/emsdk/upstream/emscripten/emrun"
165
177
  if not os.path.exists(emccRun):
@@ -179,7 +191,18 @@ class Pd4Web:
179
191
  self.CWD = os.getcwd()
180
192
  if not os.path.exists(os.path.join(self.PD4WEB_ROOT, "data")):
181
193
  os.makedirs(os.path.join(self.PD4WEB_ROOT, "data"))
182
- self.APPDATA = os.path.join(self.PD4WEB_ROOT, "data")
194
+ if sys.platform == "win32":
195
+ program_data_path = os.getenv("PROGRAMDATA")
196
+ app_data_subfolder = os.path.join(program_data_path, "pd4web")
197
+ if not os.path.exists(app_data_subfolder):
198
+ os.makedirs(app_data_subfolder)
199
+ self.APPDATA = app_data_subfolder
200
+ elif sys.platform == "darwin":
201
+ self.APPDATA = os.path.join(os.path.expanduser("~/Library/"), "pd4web")
202
+ elif sys.platform == "linux":
203
+ self.APPDATA = os.path.join(os.path.expanduser("~/.local/share"), "pd4web")
204
+ else:
205
+ self.exception("Unsupported platform")
183
206
  if not os.path.exists(self.APPDATA):
184
207
  os.makedirs(self.APPDATA)
185
208
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pd4web"
3
- version = "2.2.6"
3
+ version = "2.2.7"
4
4
  description = "pd4web compiles PureData patches with external objects for Wasm, allowing to run entire patches in web browsers."
5
5
  authors = ["Charles K. Neimog <charlesneimog@outlook.com>"]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes