summaryrefslogtreecommitdiff
path: root/pyparallel/parallel/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyparallel/parallel/__init__.py')
-rw-r--r--pyparallel/parallel/__init__.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/pyparallel/parallel/__init__.py b/pyparallel/parallel/__init__.py
new file mode 100644
index 0000000..6bcdf49
--- /dev/null
+++ b/pyparallel/parallel/__init__.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+#portable parallel port access with python
+#this is a wrapper module for different platform implementations
+#
+# (C)2001-2002 Chris Liechti <cliechti@gmx.net>
+# this is distributed under a free software license, see license.txt
+
+import sys, os, string
+VERSION = string.split("$Revision: 1.1 $")[1] #extract CVS version
+
+#chose an implementation, depending on os
+if os.name == 'nt': #sys.platform == 'win32':
+ from parallelwin32 import *
+elif os.name == 'posix':
+ from parallelposix import *
+elif os.name == 'java':
+ from paralleljava import *
+else:
+ raise "Sorry no implementation for your platform available."
+
+#no "mac" implementation. someone want's to write it? i have no access to a mac.