Linked Questions
13 questions linked to/from Detect 64bit OS (windows) in Python
1
vote
1
answer
139
views
How to detect whether the OS supports 16-bit exes in Python? [duplicate]
This is essentially the same as asking how to detect that I am running under a 64-bit version of Windows.
os.name gives 'nt' under both win7 64 and winXP 32 (my two available test computers).
sys....
10
votes
6
answers
39k
views
Python: get windows OS version and architecture
First of all, I don't think this question is a duplicate of
Detect 64bit OS (windows) in Python
because imho it has not been thoroughly answered.
The only approaching answer is:
Use sys....
14
votes
6
answers
18k
views
In Python, how do you determine whether the kernel is running in 32-bit or 64-bit mode?
I'm running python 2.6 on Linux, Mac OS, and Windows, and need to determine whether the kernel is running in 32-bit or 64-bit mode. Is there an easy way to do this?
I've looked at platform.machine(),...
13
votes
2
answers
21k
views
Python - check if a system is 32 or 64 bit to determine whether to run the function or not? [duplicate]
Possible Duplicate:
How do I determine if my python shell is executing in 32bit or 64bit mode?
I made a question earlier that never got replied to, but I have something more specific now so ...
8
votes
3
answers
6k
views
How to get path of Start Menu's Programs directory?
...for current user? for all users?
I'm working an a small program which needs to create links in the start menu. Currently I'm hardcoding like below, but it only works in english locales, for ...
2
votes
2
answers
981
views
Python: How to know if the OS/CPU is 64bits
Under Windows, I'm running a 32bits python.exe. I need to know if the OS/CPU is 64bits or 32bits.
My machine is running a Windows7 64bits.
Checked this post, and tried to run this Python script:
...
0
votes
1
answer
2k
views
I have a Win7 64bits OS, but the value of sys.platform is win32. Why?
In Python3.4, I have:
>>>import sys
>>>print(sys.platform)
win32
But the system is absolutely of win64.
Here is a piece of code in tkinter__init__py:
import sys
if sys.platform ==...
0
votes
1
answer
984
views
Get value of ERRORLEVEL (or return code) from Batch, after called from Python
I've made a script (called isPA64.bat) to determine if the executing system is 64-bit (based on this Bear's Log tip):
@echo off
setlocal
set str1=%PROCESSOR_ARCHITECTURE%
set/A sixty4=0
if not x%str1:...
0
votes
1
answer
737
views
Python 3.4 changing desktop background image does not work
I tried every example on SO and Google, but none of them working. I don't know why, script finishes without any error. But background image does not changing. I put absolute path for that image, I ...
1
vote
2
answers
542
views
Windows x64 vs x86: Hardware vs. OS vs. process
I'm having trouble with things breaking based on x86 vs x64 in Python 3 on Windows.
I need to know if my Python program is running:
On x64 vs. x86 Hardware
On a x64 vs. x86 Operating System
In a x64 ...
0
votes
1
answer
246
views
Sublime Text output incorrect architecture
1. Summary
I have 64-bit Windows. But if I use platform.architecture()[0] or sublime.arch() in my Sublime Text plugin, I get 32bit value.
2. Settings
I create a file ExampleSashaPlugin.py in $...
0
votes
0
answers
254
views
Detect platform architecture independent from Python executable
There are all sorts of ways to determine whether the Python executable is a 32 or 64 Bit program. But is there a way to determine if the machine supports x64? All I found results in 32 Bit for a x86 ...
0
votes
1
answer
74
views
How to compare a tuple return from a function within an if statement
How would I compare an element of a tuple return from a function in an if statement?
For example, I would like to do something like the following...
if platform.machine() == "AMD64" :
This function ...