Re: Program runs in all directories, except one..

2007-04-28 Thread Theo v. Werkhoven
The carbonbased lifeform Carsten Haese inspired comp.lang.python with: > On Sat, 2007-04-28 at 13:50 +0200, Theo v. Werkhoven wrote: >> Goodday, >> >> Something strange going on here. >> A piece of code I wrote bombs out in one of de directories under $HOME, >> but not in others. > > This usually

Re: Program runs in all directories, except one..

2007-04-28 Thread Theo v. Werkhoven
The carbonbased lifeform John Machin inspired comp.lang.python with: > On Apr 28, 9:50 pm, "Theo v. Werkhoven" <[EMAIL PROTECTED] > werkhoven.nl.invalid> wrote: >> Goodday, >> >> strg = array("B",octarray).tostring() > > The above statement appears to be where the error manifests itself

Re: Program runs in all directories, except one..

2007-04-28 Thread Carsten Haese
On Sat, 2007-04-28 at 13:50 +0200, Theo v. Werkhoven wrote: > Goodday, > > Something strange going on here. > A piece of code I wrote bombs out in one of de directories under $HOME, > but not in others. This usually means that the directory where your script doesn't work contains some .py file th

Re: Program runs in all directories, except one..

2007-04-28 Thread John Machin
On Apr 28, 9:50 pm, "Theo v. Werkhoven" <[EMAIL PROTECTED] werkhoven.nl.invalid> wrote: > Goodday, > > Something strange going on here. > A piece of code I wrote bombs out in one of de directories under $HOME, > but not in others. [snip] > def shiftout(numoctets): > os.system('clear') > ser

Program runs in all directories, except one..

2007-04-28 Thread Theo v. Werkhoven
Goodday, Something strange going on here. A piece of code I wrote bombs out in one of de directories under $HOME, but not in others. Here's a snipped: #v+ def bin2asc(c): s='' for i in range(0,8): if c & 1<<(7-i): s+='1' else: s+='0' return 'b'+s def