I'm using ipython on Windows
while tring to edit a file by calling:
edit filename.txt
i get an error:
"Argument given (filename.txt) can't be found"

using the command on "filename.py"
will open the editor as expected

is there some kind of setting i need to do for it to work on any filename

link|improve this question
feedback

2 Answers

Looks like you have to create the file first:

In [2]: !ls *.txt
Hello.txt          cheerlink.txt      dec.txt

In [3]: edit foo.txt
WARNING: Argument given (foo.txt) can't be found as a variable or as a filename.

In [4]: !touch foo.txt

In [5]: edit foo.txt
Editing... done. Executing edited code...

In [5]: 

This was under OS X, but if you can create files from DOS, then just substitute that command for touch.

link|improve this answer
Thanks men, you are right . but i want to do it in one cmd. at the moment i wrote my own batch file that I call instead of edit – mudi7 Dec 10 '10 at 13:37
feedback

Try giving the full pathname instead of just the filename

link|improve this answer
Thanks, but it didn't help – mudi7 Dec 4 '10 at 19:32
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.