Re: Symbolic links on Windows

2021-11-17 Thread ast
Le 17/11/2021 à 13:10, Python a écrit : ast wrote: Hello, It seems that symbolic links on Windows are not well reconized by modules os or pathlib. I have a file named json.txt on my destop. With a drag and drop right click on it I create a link automatically named: json.txt - Raccourci.lnk

Symbolic links on Windows

2021-11-17 Thread ast
Hello, It seems that symbolic links on Windows are not well reconized by modules os or pathlib. I have a file named json.txt on my destop. With a drag and drop right click on it I create a link automatically named: json.txt - Raccourci.lnk Then: >>> from pathlib import Path >>

Re: Symbolic Links

2015-08-12 Thread Joshua Stokes
Never Mind Thanks >From Joshua P Stokes > On 12 Aug 2015, at 9:25 PM, Joshua Stokes > wrote: > > Hi > > I need help deleting broken symbolic links made by Python and/or Python > modules > > Thanks > > From Joshua P Stokes -- https://mail.python.org/mailman/listinfo/python-list

Symbolic Links

2015-08-12 Thread Joshua Stokes
Hi I need help deleting broken symbolic links made by Python and/or Python modules Thanks >From Joshua P Stokes -- https://mail.python.org/mailman/listinfo/python-list

Re: How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Lawrence D'Oliveiro
In message , Peng Yu wrote: > As far as I know, linux doesn't support a system level way to figure > out all the symbolic links point to a give file. Do you know of a system that does? > I'm thinking of writing a daemon program which will build a database > on all the sym

Re: How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Aahz
In article , Peng Yu wrote: > >I'm thinking of writing a daemon program which will build a database >on all the symbolic links that point to any files. Later on, whenever >I change or remove any file or symbolic link, I'll will notify the >daemon process the change

Re: How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Falcolas
On Oct 23, 1:38 pm, Falcolas wrote: > On Oct 23, 1:25 pm, Peng Yu wrote: > > > > > As far as I know, linux doesn't support a system level way to figure > > out all the symbolic links point to a give file. I could do a system > > wide search to look for any s

Re: How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Grant Edwards
On 2009-10-23, Peng Yu wrote: > [...] > > I'm thinking of writing a daemon program [...] > > But I have never make a daemon program like this in python. Could > somebody point me what packages I need in order to make a daemon > process like this? http://www.google.com/search?q=python+daemon --

Re: How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Falcolas
On Oct 23, 1:25 pm, Peng Yu wrote: > As far as I know, linux doesn't support a system level way to figure > out all the symbolic links point to a give file. I could do a system > wide search to look for any symbolic link that point to the file that > I am interested in. But this

How to write a daemon program to monitor symbolic links?

2009-10-23 Thread Peng Yu
As far as I know, linux doesn't support a system level way to figure out all the symbolic links point to a give file. I could do a system wide search to look for any symbolic link that point to the file that I am interested in. But this will be too slow when there are many files in the sy

Re: symbolic links, aliases, cls clear

2006-05-03 Thread Floyd L. Davidson
[EMAIL PROTECTED] wrote: >it would be nice if python provided a termcap or terminfo library, >wouldn't it? Try "import curses". -- Floyd L. Davidson Ukpeagvik (Barrow, Alaska) [EMAIL PROTECTED] -- http://mail.python.org/m

Re: symbolic links, aliases, cls clear

2006-05-03 Thread af . dingo
it would be nice if python provided a termcap or terminfo library, wouldn't it? -- http://mail.python.org/mailman/listinfo/python-list

Re: symbolic links, aliases, cls clear

2006-04-15 Thread Chris F.A. Johnson
On 2006-04-13, Barry Margolin wrote: > In article <[EMAIL PROTECTED]>, > "Chris F.A. Johnson" <[EMAIL PROTECTED]> wrote: > >> In fact, my scripts are portable to other terminal types by use >> of files for each terminal, generated with tput. Using a >> different terminal is as easy

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Barry Margolin
In article <[EMAIL PROTECTED]>, "Chris F.A. Johnson" <[EMAIL PROTECTED]> wrote: > In fact, my scripts are portable to other terminal types by use > of files for each terminal, generated with tput. Using a > different terminal is as easy as ". /usr/share/term-sh/$TERM" or > som

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Chris F.A. Johnson
On 2006-04-12, Christos Georgiou wrote: > On Wed, 12 Apr 2006 15:59:05 -0400, rumours say that "Chris F.A. Johnson" ><[EMAIL PROTECTED]> might have written: > I still have a system which does not have tput. >>> >>> And that justifies everything else. Of course. >> >> If I want to write po

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Christos Georgiou
On Wed, 12 Apr 2006 15:59:05 -0400, rumours say that "Chris F.A. Johnson" <[EMAIL PROTECTED]> might have written: >>>I still have a system which does not have tput. >> >> And that justifies everything else. Of course. > > If I want to write portable scripts, then yes, it does. Well, either

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
"Chris F.A. Johnson" <[EMAIL PROTECTED]> wrote: >On 2006-04-12, Floyd L. Davidson wrote: >> Keith Thompson <[EMAIL PROTECTED]> wrote: tput clear >>> >>>(Or "clear".) >> >> But /clear/ merely uses "tput clear". > > Not on systems without tput. Shoot that thing, and put it (and yourself) o

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Chris F.A. Johnson
On 2006-04-12, jpd wrote: > Begin <[EMAIL PROTECTED]> > On 2006-04-12, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote: >>These days, the ISO-6429 standard (almost the same as the older >>ANSI x3.64) is so close to universal that I don't bother writing >>for anything else any more. > > Oh

Re: symbolic links, aliases, cls clear

2006-04-12 Thread jpd
Begin <[EMAIL PROTECTED]> On 2006-04-12, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote: >These days, the ISO-6429 standard (almost the same as the older >ANSI x3.64) is so close to universal that I don't bother writing >for anything else any more. Oh, wonderful. ``All the world's a vax

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Chris F.A. Johnson
On 2006-04-12, Floyd L. Davidson wrote: > Keith Thompson <[EMAIL PROTECTED]> wrote: >>>tput clear >> >>(Or "clear".) > > But /clear/ merely uses "tput clear". Not on systems without tput. -- Chris F.A. Johnson, author | Shell Scripting Recipes: |

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
Keith Thompson <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Floyd L. Davidson) writes: >> [EMAIL PROTECTED] wrote: >>>If I may recommend an alternative, >>> >>>print "\033[H\033[J" >>> >>>the ansi sequence to clear the screen. >> >> Or so you would hope (however, that is *not* what you have liste

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Chris F.A. Johnson
On 2006-04-12, Floyd L. Davidson wrote: > [EMAIL PROTECTED] wrote: >>If I may recommend an alternative, >> >>print "\033[H\033[J" >> >>the ansi sequence to clear the screen. > > Or so you would hope (however, that is *not* what you have listed!). > > Unfortunately, it is poor practice to hard code

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Keith Thompson
[EMAIL PROTECTED] (Floyd L. Davidson) writes: > [EMAIL PROTECTED] wrote: >>If I may recommend an alternative, >> >>print "\033[H\033[J" >> >>the ansi sequence to clear the screen. > > Or so you would hope (however, that is *not* what you have listed!). > > Unfortunately, it is poor practice to hard

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Michael Paoli
Floyd L. Davidson wrote: > [EMAIL PROTECTED] wrote: > >If I may recommend an alternative, > >print "\033[H\033[J" > Unfortunately, it is poor practice to hard code such sequences. > Instead the proper sequence should be obtained from the > appropriate database (TERMINFO or TERMCAP), and the easy wa

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
at is executing does not use >the shell (because it does not recognize shell aliases). is this >correct? No. >should i use a symbolic link? if so, where should i place it? No. >what is the difference between aliases and symbolic links? Aliases are a mechanism used by a shell to de

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
[EMAIL PROTECTED] wrote: >If I may recommend an alternative, > >print "\033[H\033[J" > >the ansi sequence to clear the screen. Or so you would hope (however, that is *not* what you have listed!). Unfortunately, it is poor practice to hard code such sequences. Instead the proper sequence should be

Re: symbolic links, aliases, cls clear

2006-04-12 Thread af . dingo
If I may recommend an alternative, print "\033[H\033[J" the ansi sequence to clear the screen. -- http://mail.python.org/mailman/listinfo/python-list

Re: symbolic links, aliases, cls clear

2006-04-04 Thread Pankaj
shell is in picture it directly replaces the string "cls" to "clear" and execute the clear. Symbolic links: are reference to the inode of the actual files, so it should work in your case. just run #which clear (O/P , you will get the location of binary say /usr/bin/clear) No

Re: symbolic links, aliases, cls clear

2006-03-30 Thread Michael Paoli
mp wrote: > i have a python program which attempts to call 'cls' but fails: > sh: line 1: cls: command not found > i'm using os x. [Note Followup-to: severely trimmed] I'd guestimate (those more familiar with python can probably fill in more relevant python specific details) that the python progr

Re: symbolic links, aliases, cls clear

2006-03-29 Thread SM Ryan
"mp" <[EMAIL PROTECTED]> wrote: # i have a python program which attempts to call 'cls' but fails: # # sh: line 1: cls: command not found # # i tried creating an alias from cls to clear in .profile, .cshrc, and # /etc/profile, but none of these options seem to work. # # my conclusion is that a py

Re: symbolic links, aliases, cls clear

2006-03-29 Thread Chris F.A. Johnson
a symbolic link? if so, where should i place it? > > what is the difference between aliases and symbolic links? What's the difference between a raven and a writing desk? > if i execute a command like 'clear' to clear the screen, where does the > shell look to find

Re: symbolic links, aliases, cls clear

2006-03-29 Thread Keith Thompson
best solution. > what is the difference between aliases and symbolic links? Aliases exist only in a shell. Symbolic links exist in the file system. > if i execute a command like 'clear' to clear the screen, where does the > shell look to find the command 'clear'?

symbolic links, aliases, cls clear

2006-03-29 Thread mp
ot use the shell (because it does not recognize shell aliases). is this correct? should i use a symbolic link? if so, where should i place it? what is the difference between aliases and symbolic links? if i execute a command like 'clear' to clear the screen, where does the shell look