diff --git a/modules/extensions_framework/util.py b/modules/extensions_framework/util.py
index b210e72921b7e60c0595251939cc56e1a90bc39c..93d31f6449903af6d7a53726a1236f49f8047d00 100644
--- a/modules/extensions_framework/util.py
+++ b/modules/extensions_framework/util.py
@@ -52,8 +52,15 @@ def path_relative_to_export(p):
 	"""Return a path that is relative to the export path"""
 	global export_path
 	p = filesystem_path(p)
+	ep = os.path.dirname(export_path)
+	
+	if os.sys.platform == 'win32':
+		# Prevent an error whereby python thinks C: and c: are different drives
+		if p[1] == ':': p = p[0].lower() + p[1:]
+		if ep[1] == ':': ep = ep[0].lower() + ep[1:]
+	
 	try:
-		relp = os.path.relpath(p, os.path.dirname(export_path))
+		relp = os.path.relpath(p, ep)
 	except ValueError: # path on different drive on windows
 		relp = p