Dummy VFS for Midnight Commander. Just for a test.
[extfs.d.git] / dummy
1 #! /usr/local/bin/python -O
2
3 """
4 Dummy VFS for Midnight Commander. Just for a test.
5
6 Author: Oleg BroytMann <phd@phd.pp.ru>.
7 Copyright (C) 2004 PhiloSoft Design.
8 License: GPL.
9
10 """
11
12 __version__ = "0.0.1"
13 __revision__ = "$Id: dummy,v 1.1 2004/06/12 22:14:57 phd Exp $"
14 __date__ = "$Date: 2004/06/12 22:14:57 $"[7:-2]
15 __author__ = "Oleg Broytmann <phd@phd.pp.ru>"
16 __copyright__ = "Copyright (C) 2004 PhiloSoft Design"
17
18 import sys
19
20 def log_error(msg):
21    sys.stderr.write(msg + '\n')
22
23 def error(msg):
24    sys.stderr.write(msg + '\n')
25    sys.exit(1)
26
27
28 if len(sys.argv) < 2:
29    error("Not enough arguments")
30
31
32 cmd = sys.argv[1]