Better locating of SmartRF Studio 7.
[goodfet] / client / GoodFETCC.py
index 165aa73..2427e03 100644 (file)
@@ -24,9 +24,8 @@ class GoodFETCC(GoodFET):
         if self.smartrfpath==None:
             self.smartrfpath=os.environ.get("SMARTRF");
         if self.smartrfpath==None and os.name=='nt':
-            self.smartrfpath="c:/Program Files (x86)/Texas Instruments/SmartRF Tools/SmartRF Studio 7";
-            if not os.path.exists(self.smartrfpath):
-                self.smartrfpath="c:/Program Files/Texas Instruments/SmartRF Tools/SmartRF Studio 7";
+            pf=os.environ['PROGRAMFILES'];
+            self.smartrfpath="%s\\\\Texas Instruments\\\\SmartRF Tools\\\\SmartRF Studio 7" % pf;
             
         if self.smartrfpath==None:
             self.smartrfpath="/opt/smartrf7";