Custom Query (344 matches)
Results (88 - 90 of 344)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#146 | fixed | Make libusb10 package detect usbcalls.dll | ||
Description |
|
|||
#147 | wontfix | tkinter working? | ||
Description |
Hi all, I installed python-tools package, and it took tkinter package as dependency. But whenever I try to run something from the \Demo\tkinter directory, I always get an error: C:\usr\lib\python2.7\Demo\tkinter\matt>python 00-HELLO-WORLD.py Traceback (most recent call last):
ImportError?: No module named _tkinter Is this expected to work? Any hint? Thanks a lot Gabriele |
|||
#148 | fixed | python: os.popen doesn't accept backslashes | ||
Description |
I discovered a strange problem with import os gcc_exe = "C:\\usr\\bin\\gcc.exe" print "["+repr(gcc_exe)+"]" # [1] This works exists = os.access(gcc_exe, os.X_OK) print "exists", exists if exists: # [2] This works too, if uncommented #os.execl(gcc_exe, "gcc", "-dumpversion") # [3] This doesn't work :((( out = os.popen(gcc_exe + ' -dumpversion', 'r') try: out_string = out.read() print out_string finally: out.close() This gives the following output here: D:>python popen.py ['C:\\usr\\bin\\gcc.exe'] exists True C:usrbingcc.exe: not found
Both [1] and [2] cases work, but case [3] does not. Seems that some extra string evaluation happens before the string is passed down to the popen implementation (as if |