~mrooney/ecryptfs/nautilus-integration

« back to all changes in this revision

Viewing changes to src/python/nautilus/nautilus_api.py

  • Committer: Dustin Kirkland
  • Date: 2009-03-20 22:11:25 UTC
  • Revision ID: dustin.kirkland@gmail.com-20090320221125-xg3n4x0s26gwt9x6
ecryptfs-rewrite-file: rm temp dir

rmdir rather than rm on the tempdir created.

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# ecryptfs.nautilus.nautilus_api - provide Nautilus API
2
 
#
3
 
# Copyright 2009 Michael Rooney <mrooney@ubuntu.com>
4
 
#
5
 
# This program is free software: you can redistribute it and/or modify it
6
 
# under the terms of the GNU General Public License version 3, as published
7
 
# by the Free Software Foundation.
8
 
#
9
 
# This program is distributed in the hope that it will be useful, but
10
 
# WITHOUT ANY WARRANTY; without even the implied warranties of
11
 
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12
 
# PURPOSE.  See the GNU General Public License for more details.
13
 
#
14
 
# You should have received a copy of the GNU General Public License along
15
 
# with this program.  If not, see <http://www.gnu.org/licenses/>.
16
 
"""A wrapper module to conditionally import the Nautilus extension API
17
 
when it is available; otherwise, import stubs for it.
18
 
 
19
 
"""
20
 
 
21
 
try:
22
 
    from nautilus import LocationWidgetProvider, InfoProvider, MenuProvider, MenuItem
23
 
except ImportError:
24
 
    from dummy_nautilus import LocationWidgetProvider, InfoProvider, MenuProvider, MenuItem