From 0122acf0a01fb368a705af3f51ba780bd7551090 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 12 Jun 2004 22:14:57 +0000 Subject: [PATCH] Dummy VFS for Midnight Commander. Just for a test. git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@2 1a6e6372-1aea-0310-bd00-dc960550e1df --- dummy | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 dummy diff --git a/dummy b/dummy new file mode 100755 index 0000000..312a47d --- /dev/null +++ b/dummy @@ -0,0 +1,32 @@ +#! /usr/local/bin/python -O + +""" +Dummy VFS for Midnight Commander. Just for a test. + +Author: Oleg BroytMann . +Copyright (C) 2004 PhiloSoft Design. +License: GPL. + +""" + +__version__ = "0.0.1" +__revision__ = "$Id: dummy,v 1.1 2004/06/12 22:14:57 phd Exp $" +__date__ = "$Date: 2004/06/12 22:14:57 $"[7:-2] +__author__ = "Oleg Broytmann " +__copyright__ = "Copyright (C) 2004 PhiloSoft Design" + +import sys + +def log_error(msg): + sys.stderr.write(msg + '\n') + +def error(msg): + sys.stderr.write(msg + '\n') + sys.exit(1) + + +if len(sys.argv) < 2: + error("Not enough arguments") + + +cmd = sys.argv[1] -- 2.39.5