+import shutil
+
+srcdir = "../.."
+gnunet_pyexpect_dir = os.path.join (srcdir, "contrib")
+if gnunet_pyexpect_dir not in sys.path:
+ sys.path.append (gnunet_pyexpect_dir)
+
+from gnunet_pyexpect import pexpect
+
+if os.name == 'posix':
+ pseudonym = 'gnunet-pseudonym'
+ gnunetarm = 'gnunet-arm'
+ publish = 'gnunet-publish'
+ unindex = 'gnunet-unindex'
+ search = 'gnunet-search'
+elif os.name == 'nt':
+ pseudonym = 'gnunet-pseudonym.exe'
+ gnunetarm = 'gnunet-arm.exe'
+ publish = 'gnunet-publish.exe'
+ unindex = 'gnunet-unindex.exe'
+ search = 'gnunet-search.exe'
+
+if os.name == "nt":
+ shutil.rmtree (os.path.join (os.getenv ("TEMP"), "gnunet-test-fs-py-ns"), True)
+else:
+ shutil.rmtree ("/tmp/gnunet-test-fs-py-ns", True)
+
+arm = subprocess.Popen ([gnunetarm, '-sq', '-c', 'test_gnunet_fs_ns_data.conf'])
+arm.communicate ()