##// END OF EJS Templates
Corrected platform recognition for win32
vivainio -
Show More
@@ -1,35 +1,35 b''
1 1 # -*- coding: utf-8 -*-
2 2 """ Proxy module for accessing platform specific utility functions.
3 3
4 4 Importing this module should give you the implementations that are correct
5 5 for your operation system, from platutils_PLATFORMNAME module.
6 6
7 7 $Id: ipstruct.py 1005 2006-01-12 08:39:26Z fperez $
8 8
9 9
10 10 """
11 11
12 12
13 13 #*****************************************************************************
14 14 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
15 15 #
16 16 # Distributed under the terms of the BSD License. The full license is in
17 17 # the file COPYING, distributed as part of this software.
18 18 #*****************************************************************************
19 19
20 20 from IPython import Release
21 21 __author__ = '%s <%s>' % Release.authors['Ville']
22 22 __license__ = Release.license
23 23
24 import os
24 import os,sys
25 25
26 26 if os.name == 'posix':
27 27 from platutils_posix import *
28 elif os.name == 'win32':
28 elif sys.platform == 'win32':
29 29 from platutils_win32 import *
30 30 else:
31 31 from platutils_dummy import *
32 32 import warnings
33 33 warnings.warn("Platutils not available for platform '%s', some features may be missing" %
34 34 os.name)
35 35 del warnings
General Comments 0
You need to be logged in to leave comments. Login now