Skip to content
Advertisement

Tag: windows

Celery + Django: Cannot start celerybeat on Windows 7

I’ve been developing a Django application and I am now trying to add Celery for background tasks. I need both normal tasks and periodic tasks to be queued. I can start up celeryd just fine, and execute tasks with it (I start it with the command python manage.py celeryd start –settings=settings –loglevel=INFO). On Windows you can’t do -beat/-b to enable

Use the python interpreter packaged with py2exe

I have a python script I want to distribute to Windows, where people might not have python installed. So I use py2exe. The problem is in the script I run other python scripts by using subprocess, which requires python interpreter as the program to execute. As I don’t have python interpreter installed on Windows, is there any way I could

Python virtualenv questions

I’m using VirtualEnv on Windows XP. I’m wondering if I have my brain wrapped around it correctly: I ran virtualenv ENV and it created C:WINDOWSsystem32ENV. I then changed my PATH variable to include C:WINDOWSsystem32ENVScripts instead of C:Python27Scripts. Then, I checked out Django into C:WINDOWSsystem32ENVLibsite-packagesdjango-trunk, updated my PYTHON_PATH variable to point the new Django directory, and continued to easy_install other things

Parsing the results of askopenfilenames()?

I’m trying to get a list of filenames from tkinter.filedialog.askopenfilenames() in Python 3.2. I was expecting the output to be a tuple (or maybe a list) with each element containing a filename. As far as I can tell, it’s returning a string with each element contained within curly-brackets {} like so: {C:UsersBVCAPFile1.txt} {C:UsersBVCAPFile2.txt} This is what I get if I

How to get the text cursor position in Windows?

Is it possible to get the overall cursor position in Windows using the standard Python libraries? Answer This retrieves the cursor’s position, in screen coordinates – point = (x,y) Retrieves information about the global cursor. Links: http://msdn.microsoft.com/en-us/library/ms648389(VS.85).aspx http://msdn.microsoft.com/en-us/library/ms648390(VS.85).aspx I am assuming that you would be using python win32 API bindings or pywin32.

How do I know what python scripts are running in Windows?

As I mentioned above, is there a way to find out what python scripts are running in Windows? Answer If you have PowerShell installed, you can get that information by using Windows Management Instrumentation (WMI) and some scripting… Open the PowerShell and use these two lines, it should could you started: This will show you the command line arguments used

Run Process and Don’t Wait

I’d like to run a process and not wait for it to return. I’ve tried spawn with P_NOWAIT and subprocess like this: However, the console window remains until I close Notepad. Is it possible to launch the process and not wait for it to complete? Answer This call doesn’t wait for the child process to terminate (on Linux). Don’t ask

Advertisement