Skip to content

Commit 9284d52

Browse files
committed
Mac support
1 parent 23dbbdf commit 9284d52

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Once you have downloaded CoppeliaSim, add the following to your *~/.bashrc* / *~
3030
```bash
3131
export COPPELIASIM_ROOT=EDIT/ME/PATH/TO/COPPELIASIM/INSTALL/DIR
3232
```
33+
Note for mac, this is usually:
34+
```bash
35+
export COPPELIASIM_ROOT=/Applications/coppeliaSim.app/Contents/MacOS
36+
```
3337

3438
Install PyRep:
3539

pyrep/backend/lib.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@
2424
coppeliasim_library = ""
2525
plat = platform.system()
2626
if plat == "Windows":
27-
raise NotImplementedError()
27+
raise NotImplementedError("Windows not tested yet.")
2828
# coppeliasim_library /= f'{defaultLibNameBase}.dll'
2929
elif plat == "Linux":
3030
coppeliasim_library = os.path.join(coppeliasim_root, "libcoppeliaSim.so")
3131
elif plat == "Darwin":
32-
raise NotImplementedError()
33-
# coppeliasim_library /= f'../MacOS/lib{defaultLibNameBase}.dylib'
32+
coppeliasim_library = os.path.join(coppeliasim_root, "libcoppeliaSim.dylib")
3433
if not os.path.isfile(coppeliasim_library):
3534
raise PyRepError(
3635
"COPPELIASIM_ROOT was not a correct path. " "See installation instructions"

setup.py

-15
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,6 @@ def get_version(rel_path):
1818
raise RuntimeError("Unable to find version string.")
1919

2020

21-
# Temp fix for CoppeliaSim 4.1
22-
if "COPPELIASIM_ROOT" not in os.environ:
23-
raise RuntimeError("COPPELIASIM_ROOT not defined.")
24-
25-
usrset_file = os.path.join(os.environ["COPPELIASIM_ROOT"], "system", "usrset.txt")
26-
usrset = ""
27-
if os.path.isfile(usrset_file):
28-
with open(usrset_file, "r") as f:
29-
usrset = f.read()
30-
31-
if "allowOldEduRelease" not in usrset:
32-
with open(usrset_file, "a+") as f:
33-
f.write("\nallowOldEduRelease=7501\n")
34-
35-
3621
core_requirements = [
3722
"numpy",
3823
"cbor",

0 commit comments

Comments
 (0)