On macOS, Python 3 is the default, and distutils is no longer available. I was able to patch math-with-slack.py to get around that as follows:
diff --git a/math-with-slack.py b/math-with-slack.py
index ad153fc..eced185 100644
--- a/math-with-slack.py
+++ b/math-with-slack.py
@@ -40,7 +40,8 @@ import struct
import functools
import hashlib
-from distutils.version import LooseVersion
+from looseversion import LooseVersion
try:
# Python 3
I'm not sure if that breaks the script for Python 2 users...
However, there are now two apps: "Slack" and "Slack 2". I downloaded the app from the Slack website. The math-with-slack.py script will update the first. That goes through, but there's no math support when you launch "Slack 2". If I direct the script to modify app.asar inside "Slack 2", it complains that it cannot update the app if it was installed from the App Store. But it wasn't installed from the App Store...
Am I missing something?
On macOS, Python 3 is the default, and
distutilsis no longer available. I was able to patchmath-with-slack.pyto get around that as follows:I'm not sure if that breaks the script for Python 2 users...
However, there are now two apps: "Slack" and "Slack 2". I downloaded the app from the Slack website. The
math-with-slack.pyscript will update the first. That goes through, but there's no math support when you launch "Slack 2". If I direct the script to modifyapp.asarinside "Slack 2", it complains that it cannot update the app if it was installed from the App Store. But it wasn't installed from the App Store...Am I missing something?