From 2a2a087cf6c6435556979d797c5fa476e7929a01 Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Thu, 30 Apr 2009 15:06:28 +0200 Subject: [PATCH] GUI BUGFIX: On some file systems, problems with case-insensitivity and name clash between sys module and local. --- gui/Gui/Makeimage.py | 4 ++-- gui/Gui/Scytherthread.py | 1 - gui/Gui/{Tempfile.py => Temporary.py} | 0 3 files changed, 2 insertions(+), 3 deletions(-) rename gui/Gui/{Tempfile.py => Temporary.py} (100%) diff --git a/gui/Gui/Makeimage.py b/gui/Gui/Makeimage.py index 6ca4b1b..daae2cd 100644 --- a/gui/Gui/Makeimage.py +++ b/gui/Gui/Makeimage.py @@ -31,7 +31,7 @@ import sys """ Import scyther components """ """ Import scyther-gui components """ -import Tempfile +import Temporary import Preference #--------------------------------------------------------------------------- @@ -123,7 +123,7 @@ def makeImageDot(dotdata,attackthread=None): ext = ".png" # command to write to temporary file - (fd2,fpname2) = Tempfile.tempcleaned(ext) + (fd2,fpname2) = Temporary.tempcleaned(ext) f = os.fdopen(fd2,'w') cmd = "dot -T%s" % (type) diff --git a/gui/Gui/Scytherthread.py b/gui/Gui/Scytherthread.py index 303f7fa..c406bf6 100644 --- a/gui/Gui/Scytherthread.py +++ b/gui/Gui/Scytherthread.py @@ -33,7 +33,6 @@ import Scyther.Error from Scyther.Misc import * """ Import scyther-gui components """ -import Tempfile import Preference import Attackwindow import Icon diff --git a/gui/Gui/Tempfile.py b/gui/Gui/Temporary.py similarity index 100% rename from gui/Gui/Tempfile.py rename to gui/Gui/Temporary.py