bahoo a écrit : > In Matlab, there is a "isunix" command. > Is there something similar in python?
>>> import os >>> os.uname() ('Linux', 'bibi', '2.6.9', '#1 Sun Dec 5 14:54:12 CET 2004', 'i686') >>> os.name 'posix' >>> isunix = lambda: os.name == 'posix' >>> isunix() True Note that if you worry about system-specific path separators, there's the os.path module. -- http://mail.python.org/mailman/listinfo/python-list