[Pkg-anonymity-tools] [onionshare] 14/140: Just realized Windows is a supported OS. This should be more portable.
Ulrike Uhlig
u-guest at moszumanska.debian.org
Mon Sep 29 20:33:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch master
in repository onionshare.
commit 0e5b182a5497d1b8b19a3d3a538e8e80a410e96e
Author: Mason Donahue <masond+github at gmail.com>
Date: Sun Aug 24 01:19:10 2014 -0500
Just realized Windows is a supported OS. This should be more portable.
---
onionshare/onionshare.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/onionshare/onionshare.py b/onionshare/onionshare.py
index 8e82604..816e844 100644
--- a/onionshare/onionshare.py
+++ b/onionshare/onionshare.py
@@ -306,8 +306,9 @@ def tails_root():
def register_cleanup_handler(directory):
import signal
+ import shutil
def handler(signum = None, frame = None):
- subprocess.call(['rm','-r',directory])
+ shutil.rmtree(directory)
sys.exit()
for sig in [signal.SIGTERM, signal.SIGINT, signal.SIGHUP, signal.SIGQUIT]:
signal.signal(sig, handler)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/onionshare.git
More information about the Pkg-anonymity-tools
mailing list