~ellisonbg/ipython/bugfixes0411409

« back to all changes in this revision

Viewing changes to IPython/platutils.py

  • Committer: ville
  • Date: 2008-02-16 09:50:47 UTC
  • mto: (0.12.1 ipython_main)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: ville@ville-pc-20080216095047-500x6dluki1iz40o
initialization (no svn history)

Show diffs side-by-side

added added

removed removed

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