Re: import module unbelieveable behaviour

2009-07-15 Thread Peter Fodrek
On Thursday 16 July 2009 08:38:57 Peter Fodrek wrote: > On Thursday 16 July 2009 07:38:23 Carl Banks wrote: > > On Jul 15, 10:16 pm, Peter Fodrek wrote: > > > On Wednesday 15 July 2009 17:41:54 Diez B. Roggisch wrote: > sys.path.insert(0,'/usr/local/lib/heekscnc/') I was mentioned that this adds

Re: import module unbelieveable behaviour

2009-07-15 Thread Peter Fodrek
On Thursday 16 July 2009 07:38:23 Carl Banks wrote: > On Jul 15, 10:16 pm, Peter Fodrek wrote: > > On Wednesday 15 July 2009 17:41:54 Diez B. Roggisch wrote: > > > Peter Fodrek wrote: > > > > .. > > > > > What does > > > > > > import nc > > > print nc.__file__ > > > > python > > Python 2.6 (r2

Re: import module unbelieveable behaviour

2009-07-15 Thread Carl Banks
On Jul 15, 10:16 pm, Peter Fodrek wrote: > On Wednesday 15 July 2009 17:41:54 Diez B. Roggisch wrote: > > > Peter Fodrek wrote: > .. > > What does > > > import nc > > print nc.__file__ > > python > Python 2.6 (r26:66714, Feb  3 2009, 20:49:49) > [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on

Re: import module unbelieveable behaviour

2009-07-15 Thread Peter Fodrek
On Thursday 16 July 2009 02:18:52 Carl Banks wrote: > On Jul 15, 6:12 am, Peter Fodrek wrote: > That's a tricky one, indeed. > > Here's my guess: test.py is a symlink to a file in another directory. It is not true guess ls -la test.py -rw-r--r-- 1 peto users 1990 2009-07-15 14:19 test.py But m

Re: import module unbelieveable behaviour

2009-07-15 Thread Peter Fodrek
On Wednesday 15 July 2009 17:41:54 Diez B. Roggisch wrote: > Peter Fodrek wrote: .. > What does > > import nc > print nc.__file__ python Python 2.6 (r26:66714, Feb 3 2009, 20:49:49) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type "help", "copyright", "credits" or "license" for mo

Re: import module unbelieveable behaviour

2009-07-15 Thread Carl Banks
On Jul 15, 6:12 am, Peter Fodrek wrote: > Dear conference! > > I have test Why python based script for HeeksCNC post-processing does not > work...  And I've got unbelievable behavior  When importing module module > manually it works, but same opertaion from script does not >  work as seen > > /opt

Re: import module unbelieveable behaviour

2009-07-15 Thread Diez B. Roggisch
Peter Fodrek wrote: > Dear conference! > > I have test Why python based script for HeeksCNC post-processing does not > work... And I've got unbelievable behavior When importing module module > manually it works, but same opertaion from script does not > work as seen > > /opt/HeeksCAD8/HeeksCN

Re: import module unbelieveable behaviour

2009-07-15 Thread Tycho Andersen
On Wed, Jul 15, 2009 at 8:12 AM, Peter Fodrek wrote: > > Would anyone be helpful for me to get more information about this problem > because  pydb does not show anything usable for me,please? What is the directory structure for the HeeksCNC module? Although I'm no expert, I suspect it looks someth

import module unbelieveable behaviour

2009-07-15 Thread Peter Fodrek
Dear conference! I have test Why python based script for HeeksCNC post-processing does not work... And I've got unbelievable behavior When importing module module manually it works, but same opertaion from script does not work as seen /opt/HeeksCAD8/HeeksCNC> python Python 2.6 (r26:66714, Fe