aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-03-10 19:56:36 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-03-10 19:56:36 +0530
commitd0a0c9217082a86f60908202d7b5e3cba8a573cf (patch)
treedda57f58b564aa234e39206a8cb66370c9f44c99
parent6c93b06908aeaab878b3adda7246eeab0fb78de6 (diff)
added temp fix readme
-rw-r--r--README.md2
-rw-r--r--VaporSong.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index de55129..5095da4 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,8 @@ optional arguments:
input url
```
+If the program gives an error for sox, try running `ulimit -n 999'`
+
## Installation
This was tested on macOS Catalina ( so should work on almost all macOS versions).
diff --git a/VaporSong.py b/VaporSong.py
index 0d55a97..bb75646 100644
--- a/VaporSong.py
+++ b/VaporSong.py
@@ -85,7 +85,9 @@ class VaporSong:
tocomb.append(sample)
tocomb.append(dest)
tmpFileLimit = len(tocomb) + 256 # in case the program messes up, it does not actually frick up your system
- os.system("ulimit -n " + str(tmpFileLimit))
+ n = str(tmpFileLimit)
+ #logger.info("Setting file limit to ", n)
+ os.system("ulimit -n " + n)
subprocess.check_output(tocomb)
return dest