diff options
author | Florian Pritz <bluewind@xssn.at> | 2009-09-02 19:22:12 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2009-09-02 19:22:12 +0200 |
commit | b2fe80e07ca4363c0707d161f664d75e5e391422 (patch) | |
tree | 5cee97a3347ee8e93299df8b2fd3af03d59f6c62 /fb | |
parent | 7fc769e425858bee31d08308ba3c5a522c71b157 (diff) | |
download | bin-b2fe80e07ca4363c0707d161f664d75e5e391422.tar.gz bin-b2fe80e07ca4363c0707d161f664d75e5e391422.tar.xz |
fb: fix tmpfile removal
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'fb')
-rwxr-xr-x | fb | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -110,15 +110,7 @@ def main(): os.chdir('/tmp') for path in tmpfiles: - if os.path.isfile(path): - os.remove(path) - else: - for file in os.listdir(path): - os.remove(path+'/'+file) - # FIXME: causes getcwd error - #os.rmdir(path) - # for some reason this works better - Popen(['rmdir', path]) + Popen(['rm', '-rf', path]) if __name__ == '__main__': main() |