Oct
06
2009
Using IPython With Take Command
Posted by Chaim in Uncategorized, tags: ipython, TCC, TCMI am running on Windows and using JP Software’s Take Command version 10. I also like to use IPython.
When I invoke IPython from a TCC shell I have problems with aliases that shell out to TCC from IPython. For example, a simple ls command.
I discovered that the DOS/TCC environmental variable COMSPEC is set to a value that includes a space (C:\Program Files\JPSoft\TCMD10\TCC.EXE). If I set it to the 8.3 value (C:\PROGRA~1\JPSoft\TCMD10\tcc.exe) before invoking IPython, all is well.
Here is a log of my session:
TCC 10.00.76 Windows Vista [Version 6.0.6002]
Copyright 2009 Rex Conn & JP Software Inc. All Rights Reserved
Registered to Chaim Krause - 1 System License
[C:\Program Files\JPSoft\TCMD10]echo %COMSPEC%
C:\Program Files\JPSoft\TCMD10\TCC.EXE
[C:\Program Files\JPSoft\TCMD10]ipython
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: ls
TCC 10.00.76 Windows Vista [Version 6.0.6002]
Copyright 2009 Rex Conn & JP Software Inc. All Rights Reserved
Registered to Chaim Krause - 1 System License
TCC: Unknown command "Files\JPSoft\TCMD10\TCC.EXE"
[C:\Program Files\JPSoft\TCMD10]exit
In [2]: Exit
[C:\Program Files\JPSoft\TCMD10]set COMSPEC=C:\PROGRA~1\JPSoft\TCMD10\tcc.exe
[C:\Program Files\JPSoft\TCMD10]ipython
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: ls
Volume in drive C is VISTA Serial number is 43eb:d126
Directory of C:\Program Files\JPSoft\TCMD10\*
10/06/2009 21:08 <DIR> .
10/06/2009 21:08 <DIR> ..
8/29/2009 13:48 80,184 4nt.exe
10/06/2009 19:35 <DIR> EditConfig
8/29/2009 13:48 369,976 English.dll
8/29/2009 13:48 290,616 EnglishD.dll
2/19/2008 23:36 20,342 examples.btm
8/29/2009 13:48 394,552 French.dll
8/29/2009 13:48 295,224 FrenchD.dll
8/29/2009 13:48 393,528 German.dll
8/29/2009 13:48 295,224 GermanD.dll
8/29/2009 13:48 2,731,320 ide.exe
4/10/2008 13:04 652,752 ipworks6.dll
4/10/2008 13:38 579,024 ipwssl6.dll
1/01/2009 11:38 9,413 license.txt
8/29/2009 13:48 299,320 onig.dll
3/11/2009 21:30 6,487 readme.txt
8/29/2009 13:48 14,136 ShrAlias.exe
8/29/2009 13:48 930,616 TakeCmd.dll
6/23/2009 10:28 131 TakeCommand.key
8/29/2009 13:48 80,184 tcc.exe
9/30/2008 23:46 986 tccbatch.btm
5/03/2008 13:29 1,154 tcchere.btm
7/07/2008 20:51 1,256 tcctabhere.btm
7/25/2009 8:53 1,574,516 tcmd.chm
10/06/2009 19:38 213,785 TCMD.chw
8/29/2009 13:48 2,470,712 tcmd.exe
5/03/2008 13:29 1,188 tcmdhere.btm
8/29/2009 13:49 294,200 updater.exe
10/06/2009 19:35 311 updater.ini
9/17/2009 15:01 0 userschaimappdatalocaltemptmp-ipython-8imnxi.py
8/29/2009 13:48 234,808 WiFiMan.dll
12,235,945 bytes in 29 files and 3 dirs 12,308,480 bytes allocated
11,714,748,416 bytes free
In [2]: Exit
[C:\Program Files\JPSoft\TCMD10]
Entries (RSS)