Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread eryksun
On Sun, Apr 28, 2013 at 10:35 PM, Dave Angel wrote: > Then I think you should change: > '-exec', 'addsync {} \;'] > > to > '-exec', 'addsync", "{}" ";"] This has a mismatched quote and a missing comma. It should be like this: '-exec', 'addsync', '{}', ';'] "find" expects the comma

Re: [Tutor] Long post: How to design a Python program to generate GUI elements in a proprietary scripting language.

2013-04-28 Thread boB Stepp
On Sun, Apr 28, 2013 at 4:25 PM, Alan Gauld wrote: > > You could build a full GUI builder in Python but that will be a lot of work. > Is there room for a half way house? > I sure hope so! > I'd suggest building a Python program that reads a resource file (maybe > using the configparser module a

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread Dave Angel
On 04/28/2013 10:04 PM, mike wrote: On 04/28/2013 08:59 PM, Dave Angel wrote: On 04/28/2013 08:54 PM, mike wrote: On 04/28/2013 07:37 PM, Dave Angel wrote: On 04/28/2013 08:17 PM, mike wrote: def sync_new(): durFind = raw_input("Enter the duration of time in days you want to l

Re: [Tutor] Long post: How to design a Python program to generate GUI elements in a proprietary scripting language.

2013-04-28 Thread boB Stepp
On Sun, Apr 28, 2013 at 7:47 PM, Steven D'Aprano wrote: > On 29/04/13 06:05, boB Stepp wrote: >> >> At work I use a commercial program for radiation therapy planning. >> This program has an extensive built-in, proprietary scripting language >> that is accessible to the user. > > > Does this have a

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread mike
On 04/28/2013 08:12 PM, Steven D'Aprano wrote: On 29/04/13 10:54, mike wrote: Can you elaborate on what you mean regarding the musicDir variable? I have a loadDir which specifies where the symlinks reside but the actual root of the media directory is /opt/data/music and it's organized via direc

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread mike
On 04/28/2013 08:59 PM, Dave Angel wrote: On 04/28/2013 08:54 PM, mike wrote: On 04/28/2013 07:37 PM, Dave Angel wrote: On 04/28/2013 08:17 PM, mike wrote: def sync_new(): durFind = raw_input("Enter the duration of time in days you want to link") durFind = int(durFind)

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread Dave Angel
On 04/28/2013 08:54 PM, mike wrote: On 04/28/2013 07:37 PM, Dave Angel wrote: On 04/28/2013 08:17 PM, mike wrote: def sync_new(): durFind = raw_input("Enter the duration of time in days you want to link") durFind = int(durFind) fileExcl = "*torrent*" linkNew = ['f

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread Dave Angel
On 04/28/2013 08:54 PM, mike wrote: On 04/28/2013 07:37 PM, Dave Angel wrote: On 04/28/2013 08:17 PM, mike wrote: def sync_new(): durFind = raw_input("Enter the duration of time in days you want to link") durFind = int(durFind) fileExcl = "*torrent*" linkNew = ['f

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread Steven D'Aprano
On 29/04/13 10:54, mike wrote: Can you elaborate on what you mean regarding the musicDir variable? I have a loadDir which specifies where the symlinks reside but the actual root of the media directory is /opt/data/music and it's organized via directories based on genres which is why I am spec

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread mike
On 04/28/2013 07:37 PM, Dave Angel wrote: On 04/28/2013 08:17 PM, mike wrote: def sync_new(): durFind = raw_input("Enter the duration of time in days you want to link") durFind = int(durFind) fileExcl = "*torrent*" linkNew = ['find', '%s' % musicDir, '-maxdepth 2',

Re: [Tutor] Long post: How to design a Python program to generate GUI elements in a proprietary scripting language.

2013-04-28 Thread Steven D'Aprano
On 29/04/13 06:05, boB Stepp wrote: At work I use a commercial program for radiation therapy planning. This program has an extensive built-in, proprietary scripting language that is accessible to the user. Does this have a name? It's a bit clumsy to refer to "proprietary scripting language" eac

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread Dave Angel
On 04/28/2013 08:17 PM, mike wrote: def sync_new(): durFind = raw_input("Enter the duration of time in days you want to link") durFind = int(durFind) fileExcl = "*torrent*" linkNew = ['find', '%s' % musicDir, '-maxdepth 2', '-mtime %s' % durFind, '-not', '-name', '%

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread mike
On 04/28/2013 12:43 PM, eryksun wrote: On Sat, Apr 27, 2013 at 9:51 PM, Dave Angel wrote: And another little-known fact -- NTFS supports hard links, or at least it did in 1995, on NT 3.5 As I recall, there wasn't support at the cmd prompt, but you could create them with system calls. NTFS h

Re: [Tutor] Helpful little book

2013-04-28 Thread Steven D'Aprano
On 29/04/13 05:03, boB Stepp wrote: I have found the following book quite helpful and keep it handy: "Python Pocket Reference" by Mark Lutz, 4th ed., c. 2010. It was released at the time that 3.0 and 2.6 were the current Python versions, but tries to include what was intended for the 2.x and 3.

Re: [Tutor] Tutor Digest, Vol 110, Issue 117

2013-04-28 Thread Jim Mooney
> In py3.x, iteritems was replaced by .items() Interesting, since iteritems was in my book, which was "updated" for Py33. I guess the moral is you shouldn't trust an author 100% ;') I must admit, iteritems did seem awkward and annoying so I'm glad it's dropped. Jim __

Re: [Tutor] Long post: How to design a Python program to generate GUI elements in a proprietary scripting language.

2013-04-28 Thread Alan Gauld
On 28/04/13 21:05, boB Stepp wrote: to do the useful things I desire. Recently I have discovered it is possible to use the proprietary scripting language to generate GUI's that allow for user interaction. However, to do so one must laboriously create the desired window in top-down fashion. Every

[Tutor] Long post: How to design a Python program to generate GUI elements in a proprietary scripting language.

2013-04-28 Thread boB Stepp
At work I use a commercial program for radiation therapy planning. This program has an extensive built-in, proprietary scripting language that is accessible to the user. The scripting files are all text-based. The OS that we are running the commercial software on is Solaris 10. The scripting langua

[Tutor] Helpful little book

2013-04-28 Thread boB Stepp
I have found the following book quite helpful and keep it handy: "Python Pocket Reference" by Mark Lutz, 4th ed., c. 2010. It was released at the time that 3.0 and 2.6 were the current Python versions, but tries to include what was intended for the 2.x and 3.x future releases as he knew them then

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread eryksun
On Sat, Apr 27, 2013 at 9:51 PM, Dave Angel wrote: > > And another little-known fact -- NTFS supports hard links, or at least it > did in 1995, on NT 3.5 As I recall, there wasn't support at the cmd prompt, > but you could create them with system calls. NTFS has always supported hard links as ad