A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2006-June/065913.html below:

[Python-Dev] UUID module

[Python-Dev] UUID module [Python-Dev] UUID module"Martin v. Löwis" martin at v.loewis.de
Mon Jun 12 18:32:03 CEST 2006
Ka-Ping Yee wrote:
> I'd like to, but i don't want to use a method for finding the system
> directory that depends on ctypes.  Is there a more general way?

I think

os.path.join(os.environ["SystemRoot"], "system32")

should be fairly reliable. If people are worried that the directory
might not be system32, then

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows\SystemDirectory

gives you the value (although I could not find out how to expand
REG_EXPAND_SZ keys with _winreg).

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4