- if os.path.exists(rpath) :
- for i in range(7,20):
- for j in range(0,15):
- path=os.path.join(rpath,"R-2."+str(i)+"."+str(j),'bin','R.exe')
- if os.path.exists(path):
- BestPath=path
+ if os.path.exists(rpath) :
+ for maj in range(2,4) :
+ for i in range(0,30):
+ for j in range(0,20):
+ for poss in ['', 'i386', 'x64'] :
+ path=os.path.join(rpath,"R-%i.%i.%i" % (maj, i, j),'bin',poss,'R.exe')
+ if os.path.exists(path):
+ BestPath=path