diff options
author | Mathieu Blondel <mathieu@mblondel.org> | 2007-05-21 23:04:34 +0000 |
---|---|---|
committer | Mathieu BlondelMathieu Blondel <mathieu@mblondel.orgmathieu@mblondel.org> | 2007-05-21 23:04:34 +0000 |
commit | f1e41f26217cf150d36fc906c9ecbcdfeac3269b (patch) | |
tree | 36742145318be98d8c9f81cd5e5dd67e66a8be8e /src/mount.wikipediafs | |
parent | d9a48b38057ac79816ff1a904d2d9e480d66ddff (diff) | |
download | wikipediafs-f1e41f26217cf150d36fc906c9ecbcdfeac3269b.tar.gz |
- Readded mount.wikipediafs.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@35 59acd704-e115-0410-a914-e735a229ed7c
Diffstat (limited to 'src/mount.wikipediafs')
-rwxr-xr-x | src/mount.wikipediafs | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/mount.wikipediafs b/src/mount.wikipediafs new file mode 100755 index 0000000..4f8feb8 --- /dev/null +++ b/src/mount.wikipediafs @@ -0,0 +1,48 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# WikipediaFS +# Copyright (C) 2005 - 2007 Mathieu Blondel +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +from sys import exit + +try: + from fuse import FuseError +except: + print "The Python bindings for fuse do not seem to be installed." + print "Please install the fuse-python package." + exit(1) + +from wikipediafs.fs import WikipediaFS + +try: + from wikipediafs.version import VERSION +except: + VERSION = 'development version' + + +try: + server = WikipediaFS(version="%prog " + VERSION, + usage='%prog mountpoint', + dash_s_do='setsingle') + + server.parse(errex=1) + server.multithreaded = 0 + server.main() +except FuseError, detail: + print detail +
\ No newline at end of file |