Anonymous committed 5444cd5

Fixed #3203 (again!) -- Install data files in the right place on MS Windows
systems. Thanks, Karen Tracey and

Comments (0)

Files changed (1)

     elif filenames:
         data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
+# Small hack for working with bdist_wininst.
+# See
+if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
+    for file_info in data_files:
+        file_info[0] = '\\PURELIB\\%s' % file_info[0]
 # Dynamically calculate the version based on django.VERSION.
 version_tuple = __import__('django').VERSION
 if version_tuple[2] is not None: