Hi,
I have a question about printing. I use the following script for printing in windows:
import win32print
printer_name = win32print.GetDefaultPrinter ()
hPrinter = win32print.OpenPrinter (printer_name)
hJob = win32print.StartDocPrinter (hPrinter, 1, ("test of raw data", None, "RAW"))...
Hi,
Does anyone know how can i get the path where the Python libraries are?For example when doing
frame.f_code.co_filename for a ConfigParser.py file,I obtain the path:
/var/tmp/python-2.2.2-root/usr/local/lib/python2.2/ConfigParser.py which is by the way not a real path.
But how can I find out...
Hi eric,
So you propose to make a list of all modules offered by Python,but I don't want to update my script everytime python introduce a new module(new version)..and my script is supposed to differentiate if it is about a standard module or a user created one,and accordingly if is standard not...
Hi,
I would like to get a list of all modules from Python Standard Library.
The command >>>print help('modules'),prints all the existing modules...but I am interested only in the ones that come from Python.
I hope that somebody can help me.
I think the problem is at line:
sys.stdout.write('VERBOSE “Script Started” 3 ')
If you put other quotations(like normal ones):
sys.stdout.write('VERBOSE "Script Started" 3 ') it must work...it says smth about not having in the ASCII the characters you put into it.Hope it helps.
I would like to debug functions&modules, but using sys.setrace() gives as output a lot of information.If possible I would like to reduce the output to something which makes sense.Can I use something else to have this done?
Hi,
I have the following problem: I want to delete a subdirectory but after deleting and rescaning the files the subdirectory is still there.When I look in my directory it is gone, so why does it find it again?
def rescan():
scan_Files=[]
def walker(arg, dir, path)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.