File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 11import codecs
2+ import os
23import os .path
34from os .path import join
45
@@ -22,6 +23,17 @@ def get_version(rel_path):
2223 raise RuntimeError ("Unable to find version string." )
2324
2425
26+ # Temp fix for CoppeliaSim 4.1
27+ if 'COPPELIASIM_ROOT' not in os .environ :
28+ raise RuntimeError ('COPPELIASIM_ROOT not defined.' )
29+ with open (os .path .join (os .environ ['COPPELIASIM_ROOT' ], 'system' , 'usrset.txt' ), 'r' ) as f :
30+ usrset = f .read ()
31+
32+ if 'allowOldEduRelease' not in usrset :
33+ with open (os .path .join (os .environ ['COPPELIASIM_ROOT' ], 'system' , 'usrset.txt' ), 'a' ) as f :
34+ f .write ('\n allowOldEduRelease=7501\n ' )
35+
36+
2537setup (name = 'PyRep' ,
2638 # Version A.B.C.D.
2739 # A.B.C info corresponds to the CoppeliaSim version needed.
You can’t perform that action at this time.
0 commit comments