#Fix path for graphics files on setup.py.
--- tpclient-pywx-0.3.1.orig/setup.py
+++ tpclient-pywx-0.3.1/setup.py
@@ -104,16 +104,6 @@
 		makedirs(llocalepath)
 		shutil.copy2(os.path.join('locale', dir, 'tpclient-pywx.mo'), llocalepath)
 
-	# Graphics files
-	#########################################################################
-	graphicspath_temp = os.path.join(temp,   "share/tpclient-pywx/graphics")
-	graphicspath      = os.path.join(prefix, "share/tpclient-pywx/graphics") 
-	print 'graphicspath', graphicspath, "(copying to %s)" % graphicspath_temp
-
-	if os.path.exists(graphicspath_temp):
-		shutil.rmtree(graphicspath_temp)
-	shutil.copytree('graphics', graphicspath_temp)
-
 	# Private python file
 	#########################################################################
 	codepath_temp = os.path.join(temp,   "share/tpclient-pywx")
@@ -125,6 +115,16 @@
 	except OSError:
 		pass
 
+	# Graphics files
+	#########################################################################
+	graphicspath_temp = os.path.join(temp,   "share/tpclient-pywx/graphics")
+	graphicspath      = os.path.join(prefix, "share/tpclient-pywx/graphics") 
+	print 'graphicspath', graphicspath, "(copying to %s)" % graphicspath_temp
+
+	if os.path.exists(graphicspath_temp):
+		shutil.rmtree(graphicspath_temp)
+	shutil.copytree('graphics', graphicspath_temp)
+
 	privatefiles = ['tpclient-pywx', 'version.py', 'requirements.py', 'utils.py', 'windows', 'extra']
 	for file in privatefiles:
 		if os.path.isfile(file):
