From 65953847f624042ddfa6461491685e0cb59a34da Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 3 Jul 2015 20:29:49 +0200 Subject: [PATCH] Fix an error in frozen ressources loading --- gns3server/utils/get_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/utils/get_resource.py b/gns3server/utils/get_resource.py index e50a7e94..b988a200 100644 --- a/gns3server/utils/get_resource.py +++ b/gns3server/utils/get_resource.py @@ -49,7 +49,7 @@ def get_resource(resource_name): """ resource_path = None - if hasattr(sys, "frozen") and os.path.exists(resource_name): + if hasattr(sys, "frozen"): resource_path = os.path.normpath(os.path.join(os.path.dirname(sys.executable), resource_name)) elif not hasattr(sys, "frozen") and pkg_resources.resource_exists("gns3server", resource_name): resource_path = pkg_resources.resource_filename("gns3server", resource_name)