cleanup for using the config dir properly, and not an hard-wired ~/.sfi/
[sface.git] / sface / sfiprocess.py
index 8eb0408..e06bf9a 100644 (file)
@@ -41,6 +41,9 @@ class SfiProcess(QObject):
 
     def __init_command(self, args):
         self.args = QStringList()
+        self.args << "-d"
+        self.args << config.get_dirname()
+
         if config.debug:
             # this shows xmlrpc conversation, see sfi.py docs.
             self.args << QString('-D')
@@ -86,7 +89,7 @@ class SfiProcess(QObject):
     def __getRSpec(self, mgr):
         slice = config.getSlice()
         # Write RSpec to file for testing.
-        filename = os.path.expanduser("~/.sfi/" + slice + ".rspec")
+        filename = config.fullpath ("%s.rspec"%slice)
         try:
             os.remove(filename)
         except: