Re: Python creates "locked" temp dir
FWIW, I got around the issue with some samba mount options. They still show as 0700, but I, or anybody elsefor that matter, can still access them. Computers are weird. :P Thanks to all who responded. :) On Dec 10, 2:57 pm, Alex Willmer wrote: > On Dec 8, 6:26 pm, Christian Heimes wrote: > > > There isn't a way to limit access to a single process. mkdtemp creates > > the directory with mode 0700 and thus limits it to the (effective) user > > of the current process. Any process of the same user is able to access > > the directory. > > > Christian > > Quite right. My apologies for confusing temporary file creation, for > which exclusive access is used and temporary directory creation for > which there is no such mode. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python creates "locked" temp dir
Thanks for the reply. The relevant function (in a module) is as follows: def createWorkDir(pathdir="k:\\"): import tempfile, os if os.name == 'posix': pathdir = os.path.join(config.get('paths', 'MOUNTPOINT'), 'subdir1') else: pathdir = os.path.normpath(r"\\windowsmount\subdir1") if not os.path.exists(os.path.join(pathdir,'tmp','program')): os.makedirs(os.path.join(pathdir,'tmp','program')) return os.path.normpath(tempfile.mkdtemp("", "", os.path.join(pathdir,'tmp','program'))) The calling program calls the function as such: updateWorkDir = createWorkDir() I then attempt to copy a file (using shutil.move) into updateWorkDir and get an: IOError: [Errno 13] Permission denied: '/MOUNTPOINT/subdir1/tmp/ program/y-Z0h3/file.ext' I also tried to create a similar dir under 'tmp' using os.mkdir and while the dir was not locked such that only the owner could do anything in it, it was not writeable by anything other than the owner, even when mode 0777 was specified explicitly. Thanks for the help. On Dec 8, 4:31 am, Alex Willmer wrote: > On Dec 7, 9:03 pm, utabintarbo wrote: > > > I am using tempfile.mkdtemp() to create a working directory on a > > remote *nix system through a Samba share. When I use this on a Windows > > box, it works, and I have full access to the created dir. When used on > > a Linux box (through the same Samba share), the created directory > > shows as "locked", and I am unable to access. Obviously, I need > > access. Any clues? > > You haven't provided enough details to go on. > 1. Please post the actual code, and the trace back (if any). > 2. When you say "I am unable to access". Do you mean another script/ > process is unable to access? If so, that is the point of mkdtemp() - > to make a temporary directory that _only_ the creating process can > access. If you want to share it then tempfile is not the right module > for you. > > Regards, Alex -- http://mail.python.org/mailman/listinfo/python-list
Python creates "locked" temp dir
I am using tempfile.mkdtemp() to create a working directory on a remote *nix system through a Samba share. When I use this on a Windows box, it works, and I have full access to the created dir. When used on a Linux box (through the same Samba share), the created directory shows as "locked", and I am unable to access. Obviously, I need access. Any clues? Background/environment: Python 2.6.5 on Red Hat Enterprise Linux 5.3 TIA -- http://mail.python.org/mailman/listinfo/python-list
Re: Cross-platform file paths
On May 7, 11:23 am, cassiope wrote: > > normpath will convert forward slashes to backslashes on WinXX systems, > but > does not seem to do the reverse on posix systems...so try changing > your > string to use forward slashes. Also- is the path otherwise the same > on > your Linux system? > > HTH.. > -f I tried forward slashes: lst_p = open(os.path.normpath('//serverFQDN/sharename/dir/ filename'),'r').readlines() Traceback (most recent call last): File "", line 1, in IOError: [Errno 2] No such file or directory: '//serverFQDN/sharename/ dir/filename' BTW, this works on WinXP. It is as if it does not resolve, yet I have '//serverFQDN/sharename' mounted, proving that it does resolve. Is this an issue with the way python deals with the network? It does not seem like a network-only issue. -- http://mail.python.org/mailman/listinfo/python-list
Cross-platform file paths
Until now, I have used the UNC under Windows (XP) to allow my program to access files located on a Samba-equipped *nix box (eg. os.path.normpath(r"\\serverFQDN\sharename\dir\filename")). When I try to open this file under Linux (Red Hat 5), I get a file not found error. Is there a cross-platform method for accessing files on a network share using Python 2.X? TIA -- http://mail.python.org/mailman/listinfo/python-list
Re: Raw strings as input from File?
On Nov 24, 3:27 pm, MRAB wrote: > > .readlines() doesn't change the "\10" in a file to "\x08" in the string > it returns. > > Could you provide some code which shows your problem? Here is the code block I have so far: for l in open(CONTENTS, 'r').readlines(): f = os.path.splitext(os.path.split(l.split('->')[0]))[0] if f in os.listdir(DIR1) and os.path.isdir(os.path.join(DIR1,f)): shutil.rmtree(os.path.join(DIR1,f)) if f in os.listdir(DIR2) and os.path.isdir(os.path.join(DIR2,f)): shutil.rmtree(os.path.join(DIR2,f)) I am trying to find dirs with the basename of the initial path less the extension in both DIR1 and DIR2 A minimally obfuscated line from the log file: K:\sm\SMI\des\RS\Pat\10DJ\121.D5-30\1215B-B-D5-BSHOE-MM.smz->/arch_m1/ smi/des/RS/Pat/10DJ/121.D5-30\1215B-B-D5-BSHOE-MM.smz ; t9480rc ; 11/24/2009 08:16:42 ; 1259068602 What I get from the debugger/python shell: 'K:\\sm\\SMI\\des\\RS\\Pat\x08DJQ.D5-30Q5B-B-D5-BSHOE-MM.smz->/arch_m1/ smi/des/RS/Pat/10DJ/121.D5-30/1215B-B-D5-BSHOE-MM.smz ; t9480rc ; 11/24/2009 08:16:42 ; 1259068602' TIA -- http://mail.python.org/mailman/listinfo/python-list
Raw strings as input from File?
I have a log file with full Windows paths on a line. eg: K:\A\B\C\10xx\somerandomfilename.ext->/a1/b1/c1/10xx \somerandomfilename.ext ; txx; 11/23/2009 15:00:16 ; 1259006416 As I try to pull in the line and process it, python changes the "\10" to a "\x08". This is before I can do anything with it. Is there a way to specify that incoming lines (say, when using .readlines() ) should be treated as raw strings? TIA -- http://mail.python.org/mailman/listinfo/python-list
Re: ??? POLICE AND CITY/UNIVERSITY OFFICIALS INCOMPETENCE LEADS TO 33 KILLED BY KOREAN-ALQAEDA TERRORIST ???
On Apr 17, 10:32 am, Muhammad <[EMAIL PROTECTED]> wrote: > On Apr 17, 7:56 am, [EMAIL PROTECTED] wrote: >> - > You mentioned "Korean Al-Qaeda Terrorist" in the title! Honesty > demands that you establish it as a fact that the person was connected > to Al-Qaeda and that he was a terrorist and not some mentally sick > fellow. > Muhammad Just do it in a more appropriate forum, mmmkay? -- http://mail.python.org/mailman/listinfo/python-list
Re: Threading
Gheorghe Postelnicu wrote: >... > However, my question regards killing the actual children threads - > they are spending lots of time in system calls, so I cannot insert > some while loop in a derived Thread class. > > Any suggestions would be apreciated. > Have the threads look for a semaphore file. If it exists, they delete it and die. Just an ideaHTH -- http://mail.python.org/mailman/listinfo/python-list
Re: Searching for a module to generate GUI events
Stephan Kuhagen wrote: > Hello > > I'm searching for a Python Module which is able to generate GUI events on > different platforms (at least X11 and Windows, MacOSX would be nice), but > without being a GUI toolkit itself. So PyTk is not a choice, because I need > to use it, to control GUIs of other Programs. I want to generate Mouse > events (move, click etc.) and keyboard events and inject them directly into > the event-queue of the underlying window system. > > Does somebody know such a module or do I have to utilize platform specific > tools from within Python? > > Regards and Thanks > Stephan http://pywinauto.pbwiki.com/ for Win32 -- http://mail.python.org/mailman/listinfo/python-list
Re: Python tools for managing static websites?
Glenn Hutchings wrote: > I haven't seen mention of HTMLgen, another python package. Check it > out at: > > http://starship.python.net/crew/friedrich/HTMLgen/html/main.html > > Glenn For whatever reason, the Starship (hence that link) has been down for a while. :-( But I do agree that HTMLgen is worthy of consideration (I use it myself). -- http://mail.python.org/mailman/listinfo/python-list
Re: best way to check if a file exists?
John Salerno wrote: > What is the best way to check if a file already exists in the current > directory? I saw os.path.isfile(), but I'm not sure if that does more > than what I need. > > I just want to check if a file of a certain name exists before the user > creates a new file of that name. > > Thanks. os.path.exists()? -- http://mail.python.org/mailman/listinfo/python-list
Re: external file closed
Jerry wrote: > On Oct 17, 12:43 pm, "kilnhead" <[EMAIL PROTECTED]> wrote: > > I am opening a file using os.start('myfile.pdf') from python. How can I > > know when the user has closed the file so I can delete it? Thanks. > > I assume you mean os.startfile. There is no way to do this directly. > os.startfile simply hands off the call to the OS and doesn't provide > anything to track anything after that. Since you won't know what > program handled the file association, you couldn't watch for an > instance of that to start up and detect when it exits. Even if you > could, it wouldn't be reliable as in the case of PDF's and Adobe > Acrobat Reader, the user could close the document, but not the > application, so your script would never delete the file in question. > > If anyone can think of a way to do this, it would be interesting to see > how it's done. > > -- > Jerry os.system('myfile.pdf') will give return code upon closing. This can also be done using the subprocess module with poll(). -- http://mail.python.org/mailman/listinfo/python-list
Re: Asychronous execution *with* return codes?
Fredrik Lundh wrote: > utabintarbo wrote: > > > If so, how do I handle the poll() on long-running processes? Run a > > bunch and then start a check loop? > > or use a thread to keep track of each external process. > > This sounds most promising. Might you have a code snippet (or link to same) illustrating this? -- http://mail.python.org/mailman/listinfo/python-list
Re: Asychronous execution *with* return codes?
Justin wrote: > If you're on a POSIX system, you could use the usual fork/exec/wait: > Sorry. Win32. We are only allowed spoons - no sharp objects. :-P -- http://mail.python.org/mailman/listinfo/python-list
Re: Asychronous execution *with* return codes?
MonkeeSage wrote: > utabintarbo wrote: > > pid = subprocess.Popen([app] + lstArgs).pid > > Check out the poll() method and the returncode attribute: > http://docs.python.org/lib/node533.html > Thanks for the reply. If I understand your meaning, I should do something like this (given I wish to run an app against several arguments [my use case]): for lstArgs in pileOflstArgs: uniqueProcessID = subprocess.Popen([app] + lstArgs) pid = uniqueProcessID.pid retcode = uniqueProcessID.poll() # increment uniqueProcessID If so, how do I handle the poll() on long-running processes? Run a bunch and then start a check loop? Am I asking too many questions? -- http://mail.python.org/mailman/listinfo/python-list
Asychronous execution *with* return codes?
I hope I have not overlooked a solution already posted, but I seem to be unable to suss out a way to achieve both multiple console-less executions of a given (console) application and gathering the return code from the application. What I have found: import subprocess # gives back return code, but does not run asynchronously retcode = subprocess.call([app, lstArgs]) retcode = subprocess.Popen([app] + lstArgs).wait() # runs the app async, but only returns the pid (no return code) pid = subprocess.Popen([app] + lstArgs).pid Is there some magic elixir which will get me both? TIA -- http://mail.python.org/mailman/listinfo/python-list
Re: can't open chm files all of a sudden
John Salerno wrote: > Hi all. I apologize since this is only remotely Python related, but I > hope someone might now the solution. > > I tried opening my Python chm docs just now, as well as the one for > wxPython, and both are giving me an error dialog when I double-click > them and I can't open them. This happened apparently for no reason, just > today. I even reset but that didn't help. > > Does anyone know what might cause this, and if it could affect the rest > of Python or wxPython as well? Are these files on a network share? >From http://support.microsoft.com/kb/892675/en-us : "This problem occurs because security update 896358 and 890175 prevent HTML content that is outside the Local Machine zone from creating an instance of the HTML Help ActiveX control (HHCTRL). This change was introduced to reduce security vulnerabilities in HTML Help." HTH -- http://mail.python.org/mailman/listinfo/python-list
Re: Extra Newby question - Trying to create md5 File Listing
Just for S&G's, I offer the following function which will return the md5sum of an arbitrarily large file. Found a while back while surfing def md5sum(fpath): """ function to return the md5sum (128 bit checksum) of the given file The sums are computed as described in RFC 1321. The default mode is binary. Output is a line with checksum and name for each FILE. """ import md5 import os bufsize = 8096 rmode = 'rb' m = md5.new() fp = open(fpath, rmode) try: while 1: data = fp.read(bufsize) if not data: break m.update(data) except IOError, msg: return '0', msg return m.hexdigest() + ' ' + fpath Enjoy! -- http://mail.python.org/mailman/listinfo/python-list
Re: Win32: Access to network resources w/o user login
Steve Holden wrote: > http://oss.coresecurity.com/projects/impacket.html > > perhaps? > > regards > Steve > -- > Steve Holden +44 150 684 7255 +1 800 494 3119 > Holden Web LLC/Ltd http://www.holdenweb.com > Skype: holdenweb http://holdenweb.blogspot.com > Recent Ramblings http://del.icio.us/steve.holden That looks *very* interesting. I will report back on my findings. It seems to have an ftp-like interface using smb as a transport. I am not sure this will accomplish what I am after, but I will certainly give it hell for a bit. :-) -- http://mail.python.org/mailman/listinfo/python-list
Win32: Access to network resources w/o user login
Is there a way to (programmatically) access network resources from a WinXP client without a user being logged in? I guess I need to know where the fstab file is in Windows. :-P Some more background: I am trying to access a samba share which is set up for anonymous login (all unknown users are mapped to a known user) with a process I hope to turn into a service (as soon as I figure *that* out as well :-P). Any help is *greatly* appreciated! -- http://mail.python.org/mailman/listinfo/python-list
Re: Exposing Excel as a Webservice
Disclaimer: I am not an expert in python, or even programming, for that matter In any case, option #2 sounds like the most theoretically sound. It sounds like you are using Excel as a database, and your worker thread as a transaction queue. Something to consider: do you really need to modify directly a spreadsheet? Can you not use another format to feed a template spreadsheet (ie. xml or csv), and then modify that file as a text file without the overhead of Excel? Just a thought -- http://mail.python.org/mailman/listinfo/python-list
Re: Random image downloader for newsgroups (first script)
Skip Montanaro wrote: > > > SERVER = "news.server.co.uk" #Insert news server here > > > GROUP = "alt.binaries.pictures.blah" #newsgroup will go here > > > > Just why do I imagine there will be an adult newsgroup in the end? > > I can see the freshmeat announcement now: "Random Boob Visualizer 1.0"... > > Skip mm, boobs. ;-) -- http://mail.python.org/mailman/listinfo/python-list
Re: Programming isn't dangerous...
Darwinism in action! :-P -- http://mail.python.org/mailman/listinfo/python-list
Re: python
[EMAIL PROTECTED] wrote: > Regards, > [EMAIL PROTECTED] Thanks! -- http://mail.python.org/mailman/listinfo/python-list
Re: schedule at specific hours
Take a look at http://sourceforge.net/projects/pycron/ . It may give you some ideas. Bob -- http://mail.python.org/mailman/listinfo/python-list
Re: Native Win32 text entry dialog?
Well, to answer my own question http://www.averdevelopment.com/python/EasyDialogs.html Thanks to all who responded! ;-P -- http://mail.python.org/mailman/listinfo/python-list
Native Win32 text entry dialog?
Is there a native Win32 text entry dialog available through the Win32 extensions. I am looking for something similar to easygui's (http://www.ferg.org/easygui/) enterbox. Any ideas? TIA -- http://mail.python.org/mailman/listinfo/python-list
Re: How to start more than one process at the same time?
Look into the subprocess module. Possibly relevant link follows: http://docs.python.org/lib/node244.html -- http://mail.python.org/mailman/listinfo/python-list
Re: list comprehension
Simon Forman wrote: > results = [] > for var in some_iterable: > if some condition: > results.append(some expression) > > > The list comprehension version: > > results = [some expression for var in some_iterable if some condition] > > > There's more to it, but that's the basic idea. Even if 'a' doesn't like it, I do! :-) -- http://mail.python.org/mailman/listinfo/python-list
Re: determining file type
http://www.demonseed.net/~jp/code/magic.py -- http://mail.python.org/mailman/listinfo/python-list
Re: Bundling an application with third-party modules
A couple of alternatives: 1. py2exe/csFreeze-type thing. This would even relieve the customer of installing python 2. An Installshield-type installer can place files (essentially) wherever you want them HTH -- http://mail.python.org/mailman/listinfo/python-list
Re: freeze tool like perl2exe?
CX_Freeze? http://starship.python.net/crew/atuining/cx_Freeze/ -- http://mail.python.org/mailman/listinfo/python-list
Re: what has python added to programming languages? (lets be esoteric, shall we ; )
Why does Python have to "add" anything, if it makes "that which came before" more easily accessible/usable? Perhaps that is its innovation. Is that not sufficient? -- http://mail.python.org/mailman/listinfo/python-list
Re: Windows getting local ip address
You can do essentially the same thing substituting "ipconfig" for ifconfig. Though I am sure there are better ways -- http://mail.python.org/mailman/listinfo/python-list
Re: vb dll
How? -- http://mail.python.org/mailman/listinfo/python-list
Re: sockets, where can I find documentation?
For a good general book on networking with python, try Foundations of Python Network Programming by John Goerzen. http://www.amazon.com/gp/product/1590593715/qid=1141390241/sr=1-9/ref=sr_1_9/104-7194399-1227965?s=books&v=glance&n=283155 -- http://mail.python.org/mailman/listinfo/python-list
Re: Finding the relative path of a file from a dir
http://groups.google.com/group/comp.lang.python/browse_thread/thread/390d8d3e3ac8ef44/d8c74f96468c6a36?q=relative+path&rnum=1#d8c74f96468c6a36 -- http://mail.python.org/mailman/listinfo/python-list
Re: time scheduling in ptyhon
http://sourceforge.net/projects/pycron/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Encoding of file names
Part of the reason (I think) is that our CAD/Data Management system (which produces the aforementioned .MODEL files) substitutes (stupidly, IMNSHO) non-printable characters for embedded spaces in file names. This is part of what leads to my consternation here. And yeah, Windows isn't helping matters much. No surprise there. :-P Just for s&g's, I ran this on python 2.3 on knoppix: >>> DIR = os.getcwd() >>> files = os.listdir(DIR) >>> file = files[-1] >>> print file L07JS41C.04389525AA.QTR±INR.E´C-P.D11.081305.P2.KPF.model >>> print repr(file) 'L07JS41C.04389525AA.QTR\xb1INR.E\xb4C-P.D11.081305.P2.KPF.model' >>> fullname = os.path.join(DIR, file) >>> print os.path.isfile(fullname) True <--- It works fine here >>> print os.path.isdir(fullname) False >>> files = os.listdir(unicode(DIR)) >>> file = files[-1] >>> print file L07JS41C.04389525AA.QTR±INR.E´C-P.D11.081305.P2.KPF.model >>> print repr(file) 'L07JS41C.04389525AA.QTR\xb1INR.E\xb4C-P.D11.081305.P2.KPF.model' >>> fullname = os.path.join(DIR, file) >>> print os.path.isfile(fullname) True <--- It works fine here too! >>> print os.path.isdir(fullname) False >>> This is when mounting the same samba share in Linux. This tends to support Tom's point re:the "non-roundtrippability" thing. Thanks again to all. -- http://mail.python.org/mailman/listinfo/python-list
Re: Encoding of file names
Fredrik, you are a God! Thank You^3. I am unworthy I believe that may do the trick. Here is the results of running your code: >>> DIR = os.getcwd() >>> files = os.listdir(DIR) >>> file = files[-1] >>> file 'L07JS41C.04389525AA.QTR\xa6INR.E\xa6C-P.D11.081305.P2.KPF.model' >>> print file L07JS41C.04389525AA.QTRªINR.EªC-P.D11.081305.P2.KPF.model >>> print repr(file) 'L07JS41C.04389525AA.QTR\xa6INR.E\xa6C-P.D11.081305.P2.KPF.model' >>> fullname = os.path.join(DIR, file) >>> print os.path.isfile(fullname) False >>> print os.path.isdir(fullname) False >>> files = os.listdir(unicode(DIR)) >>> file = files[-1] >>> print file L07JS41C.04389525AA.QTR¦INR.E¦C-P.D11.081305.P2.KPF.model >>> print repr(file) u'L07JS41C.04389525AA.QTR\u2592INR.E\u2524C-P.D11.081305.P2.KPF.model' >>> fullname = os.path.join(DIR, file) >>> print os.path.isfile(fullname) True <--- Success! >>> print os.path.isdir(fullname) False Thanks to all who posted. :-) -- http://mail.python.org/mailman/listinfo/python-list
Encoding of file names
Here is my situation: I am trying to programatically access files created on an IBM AIX system, stored on a Sun OS 5.8 fileserver, through a samba-mapped drive on a Win32 system. Not confused? OK, let's move on... ;-) When I ask for an os.listdir() of a relevant directory, I get filenames with embedded escaped characters (ex. 'F07JS41C.04389525AA.UPR\xa6INR.E\xa6C-P.D11.081305.P2.KPF.model') which will read as "False" when applying an os.path.isfile() to it. I wish to apply some operations to these files, but am unable, since python (on Win32, at least) does not recognize this as a valid filename. Help me, before my thin veneer of genius is torn from my boss's eyes! ;-) -- http://mail.python.org/mailman/listinfo/python-list
Re: os.spawnl error
I have found the judicious use of os.path.normpath(path) to be quite useful as well. Bob -- http://mail.python.org/mailman/listinfo/python-list
Re: How can I package a python script and modules into a single script?
I believe you are thinking of "freeze", which is part of the normal python distro. There is also cx_Freeze ( http://starship.python.net/crew/atuining/cx_Freeze/ ) Bob -- http://mail.python.org/mailman/listinfo/python-list
Re: question about output
Given that the format is consistent (and the last char is not part of the number you want), you can probably do something like this: x = int('10944800e'[:-1]) Disclaimer: I am a n00b. YMMV ;-) -- http://mail.python.org/mailman/listinfo/python-list
Re: file access dialog
For simple, it's hard to beat EasyGUI: http://www.ferg.org/easygui/ Bob -- http://mail.python.org/mailman/listinfo/python-list
Re: X-Platform method of remote execution of Windows programs
It seems as if I am doomed to use additional software on the windows box. Damn! The "unclarity" is in the authentication for the remote box. If I wish to start a process on a remote box with another user's credentials (other than the user I am logged in as), I am unsure as to how to accomplish this. Anything you can add to the docs concerning this would be greatly appreciated. Thanks for the response, Bob -- http://mail.python.org/mailman/listinfo/python-list
Re: X-Platform method of remote execution of Windows programs
Well, I can do this using WMI thru VBScript for Windows-Windows connections. What I would like is a method using python for both Windows-Windows and Linux-Windows connections. I've looked at pyWMI (http://tgolden.sc.sabren.com/python/wmi.html), and found it unclear in it's dealings with remote boxes. A look at win32com netted me a load of "Access Denied" errors. An alternative is using OpenSSH for Windows (on sourceforge), but I am looking for a solution which would not require any additional software on the Windows boxen. Thanks for the reply. Bob -- http://mail.python.org/mailman/listinfo/python-list
X-Platform method of remote execution of Windows programs
How can I execute a program in windows on a remote pc, from both linux and windows, using python (more-or-less) alone? Any help would be GREATLY appreciated! Bob -- http://mail.python.org/mailman/listinfo/python-list
Re: How to kill easygui dialog?
William, Thanks for the reply. No flames, but I am running on both Linux and Windows, so I need a x-platform solution. I thought I had it with easygui... Must try some other ideas -- http://mail.python.org/mailman/listinfo/python-list
How to kill easygui dialog?
I am using an easygui(http://www.ferg.org/easygui/index.html) dialog (enterbox) to retrieve some info from a user. The program then goes on and does a bit of processing, sometimes for several minutes. In the meantime, the dialog stays there, dead but visible. I would prefer that either another dialog ("Processing") would be shown while background stuff happens, or that the current dialog would simply disappear. Ideas? TIA, Bob -- http://mail.python.org/mailman/listinfo/python-list
Re: Favorite non-python language trick?
>with colour do begin >red := 0; blue := 255; green := 0; >end; > >instead of: > >colour.red := 0; colour.blue := 255; colour.green := 0; Why not: from color import * red := 0 blue := 255 green := 0 ... -- http://mail.python.org/mailman/listinfo/python-list
Re: Allowing only one instance of a script?
... lock file? -- http://mail.python.org/mailman/listinfo/python-list
Re: Help implementing an idea
Take a look at: http://dirssync.sourceforge.net/ See if that gives you any direction. -- http://mail.python.org/mailman/listinfo/python-list
Re: globbing multiple wildcards
Is there any way to make this recursive? That is what I was looking for. Sorry I wasn't too clear before. Bob -- http://mail.python.org/mailman/listinfo/python-list
Re: Ask for a tools to protect my .pyc file :)
pyobfuscate http://www.lysator.liu.se/~astrand/projects/pyobfuscate/ -- http://mail.python.org/mailman/listinfo/python-list
Re: globbing multiple wildcards
OK, I guess it WAS that easy. :-P Thanks for the replys. Bob -- http://mail.python.org/mailman/listinfo/python-list
globbing multiple wildcards
I have a path spec similar to '/home/*/.mozilla/*/*/cache*/*' (this will probably look familiar to *nix users) with multiple wildcards. I am finding it difficult gathering ALL file pathnames which match this spec. Can anyone shed some light on this for a python noob? TIA Bob -- http://mail.python.org/mailman/listinfo/python-list