I have a number of binary libraries that are dependent on whether the
precompiled python distribution (eg. Enthought, ActiveState, etc) in which
they are installed are compiled with 32 or 64 bit. Is there any reliable way to
determine at run time whether a python distribution is 32 or 64 bit?
I want to input a python list as a command line argument as for example
python weathering-sens.py -daughter ['p0-50-50','p0-0-0-100’]
but what I get from sys.argv is [p0-50-50,p0-0-0-100] without the string
delimiters on the list elements. I’m probably missing something really simple
because
September 2012 02:57, Garry Willgoose garry.willgo...@newcastle.edu.au
wrote:
I want to put a shortcut onto the desktop in windows (XP and later) in Python
2.6 or later. In Unix its easy using os.symlink but I can't find anything
equivalent for windows. My searches on the web led me to the code below
I want to put a shortcut onto the desktop in windows (XP and later) in Python
2.6 or later. In Unix its easy using os.symlink but I can't find anything
equivalent for windows. My searches on the web led me to the code below but the
code returns the error
AttributeError: function
os.system('rm -R test_directory').
-
Prof Garry Willgoose
Australian Professorial Fellow,
School of Engineering,
The University of Newcastle,
Callaghan, NSW, 2308.
Australia
Phone: +61 2 4921 6050 (Tues-Thurs)
+61 2 6545 9574 (Fri-Mon)
FAX
os.system('rm -R test_directory').
-
Prof Garry Willgoose
Australian Professorial Fellow,
School of Engineering,
The University of Newcastle,
Callaghan, NSW, 2308.
Australia
Phone: +61 2 4921 6050 (Tues-Thurs)
+61 2 6545 9574 (Fri-Mon)
FAX
os.system('rm -R test_directory').
-
Prof Garry Willgoose
Australian Professorial Fellow,
School of Engineering,
The University of Newcastle,
Callaghan, NSW, 2308.
Australia
Phone: +61 2 4921 6050 (Tues-Thurs)
+61 2 6545 9574 (Fri-Mon)
FAX
on the web most of the solutions look
rather difficult.
Prof Garry Willgoose,
Director, Centre for Climate Impact Management (C2IM),
Head of Discipline, Discipline of Civil Surveying and Environmental Engineering,
School of Engineering
I'm reading a file output by the system utility WMIC in windows (so I can track
CPU usage by process ID) and the text file WMIC outputs seems to have extra
characters in I've not seen before.
I use os.system('WMIC /OUTPUT:c:\cpu.txt PROCESS GET ProcessId') to output the
file and parse file
.
Prof Garry Willgoose,
email: garry.willgo...@newcastle.edu.au; g.willgo...@telluricresearch.com
email-for-life: garry.willgo...@alum.mit.edu
personal webpage: www.telluricresearch.com/garry
Do not go where the path may lead
.
Prof Garry Willgoose,
Australian Professorial Fellow in Environmental Engineering,
Director, Centre for Climate Impact Management (C2IM),
School of Engineering, The University of Newcastle,
Callaghan, 2308
Australia.
Centre webpage: www.c2im.org.au
Phone: (International) +61 2 4921 6050
independence.
My core question if I give a pickled file to somebody else can i guarantee they
can read/load it OK. The other person will be using exactly the same python
code to open it as used to create it.
Prof Garry Willgoose
variables in entirely different
modules. IS there any way to do this?
Prof Garry Willgoose,
Australian Professorial Fellow in Environmental Engineering,
Director, Centre for Climate Impact Management (C2IM),
School
?
Prof Garry Willgoose,
Australian Professorial Fellow in Environmental Engineering,
Director, Centre for Climate Impact Management (C2IM),
School of Engineering, The University of Newcastle,
Callaghan, 2308
Australia.
Centre webpage: www.c2im.org.au
Phone: (International) +61
I'm just porting an old code from a GUI in Tkinter to one in wxPython
and am having a problem with one of the dialog widgets. This is on
OSX. The code below gives the result
result= 5104 5103 5104
as expected but if I substitute the single line form that is commented
out (as per the
read
popen I can't do that.
Prof Garry Willgoose,
Australian Professorial Fellow in Environmental Engineering,
Director, Centre for Climate Impact Management (C2IM),
School of Engineering, The University of Newcastle,
Callaghan
this?
Andreas
Am Dienstag, den 08.04.2008, 17:12 +1000 schrieb Garry Willgoose:
I'm writing a (very simple) command line window for use within my
Tkinter GUI menu driven program (Aside: I want to provide a Matlab
like command line capability within an otherwise menu driven
program ... but where
doing so I'm just wondering if there is
a clear and simple shortcut ;-)
Prof Garry Willgoose,
Australian Professorial Fellow in Environmental Engineering,
Director, Centre for Climate Impact Management (C2IM),
School
.
Prof Garry Willgoose,
Australian Professorial Fellow in Environmental Engineering,
Director, Centre for Climate Impact Management (C2IM),
School of Engineering, The University of Newcastle,
Callaghan, 2308
Australia.
Centre webpage
siberia900
'1.00'
-
Prof Garry Willgoose,
Australian Professorial Fellow in Environmental Engineering,
Director, Centre for Climate Impact Management (C2IM),
School of Engineering, The University
' is not defined
-
Prof Garry Willgoose,
Australian Professorial Fellow in Environmental Engineering,
Director, Centre for Climate Impact Management (C2IM),
School of Engineering, The University
21 matches
Mail list logo