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