platutils_dummy.py
33 lines
| 1009 B
| text/x-python
|
PythonLexer
/ IPython / platutils_dummy.py
vivainio
|
r107 | # -*- coding: utf-8 -*- | ||
""" Platform specific utility functions, dummy version | ||||
This has empty implementation of the platutils functions, used for | ||||
unsupported operating systems. | ||||
Fernando Perez
|
r1875 | |||
Authors | ||||
------- | ||||
- Ville Vainio <vivainio@gmail.com> | ||||
vivainio
|
r107 | """ | ||
#***************************************************************************** | ||||
Fernando Perez
|
r1875 | # Copyright (C) 2008-2009 The IPython Development Team | ||
# Copyright (C) 2001-2007 Fernando Perez <fperez@colorado.edu> | ||||
vivainio
|
r107 | # | ||
# Distributed under the terms of the BSD License. The full license is in | ||||
# the file COPYING, distributed as part of this software. | ||||
#***************************************************************************** | ||||
Fernando Perez
|
r1331 | # This variable is part of the expected API of the module: | ||
ignore_termtitle = True | ||||
vivainio
|
r107 | |||
Fernando Perez
|
r1331 | def set_term_title(*args,**kw): | ||
"""Dummy no-op.""" | ||||
vivainio
|
r107 | pass | ||
Brian Granger
|
r1975 | |||
def find_cmd(cmd): | ||||
"""Find the full path to a command using which.""" | ||||
return os.popen('which %s' % cmd).read().strip() | ||||
Administrator
|
r1986 | |||
def get_long_path_name(path): | ||||
"""Dummy no-op.""" | ||||
return path | ||||