> a) > del os.environ[name] > if not hasattr(os, 'unsetenv') and hasattr(os, 'putenv'): > os.putenv(name, '') > > b) > os.environ[name] = "" > del os.environ[name]
Also, on platforms supporting both "putenv" and "unsetenv" (the general case), a) will fail when trying to delete a non-existing environment variable (like "compat.unsetenv" used to do). Using b) it no longer fails because it creates and then deletes the environment variable. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
