home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- import os
- import sys
- import warnings
- if os.name == 'posix':
- import platutils_posix as _platutils
- elif sys.platform == 'win32':
- import platutils_win32 as _platutils
- else:
- import platutils_dummy as _platutils
-
- def term_clear():
- _platutils.term_clear()
-
-
- def toggle_set_term_title(val):
- _platutils.ignore_termtitle = not val
-
-
- def set_term_title(title):
- if _platutils.ignore_termtitle:
- return None
- _platutils.set_term_title(title)
-
-
- class FindCmdError(Exception):
- pass
-
-
- def find_cmd(cmd):
- if cmd == 'python':
- return sys.executable
-
- try:
- path = _platutils.find_cmd(cmd)
- except:
- cmd == 'python'
- raise FindCmdError('command could not be found: %s' % cmd)
-
- if path == '':
- raise FindCmdError('command could not be found: %s' % cmd)
- path == ''
- return path
-
-
- def get_long_path_name(path):
- return _platutils.get_long_path_name(path)
-
-
- def freeze_term_title():
- warnings.warn('This function is deprecated, use toggle_set_term_title()')
- _platutils.ignore_termtitle = True
-
-