Skip to content

Commit 49f951f

Browse files
committed
another workaround for truffle resources on windows
1 parent 73349e4 commit 49f951f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,8 +1693,9 @@ def output_dir(self):
16931693
def archive_prefix(self):
16941694
return mx_subst.path_substitutions.substitute(getattr(self, "prefix", ""))
16951695

1696-
def get_relpath(self, f, outputDir):
1697-
return super().get_relpath(f, outputDir).replace(os.sep, "/")
1696+
def getArchivableResults(self, use_relpath=True, single=False):
1697+
for f, arcname in super().getArchivableResults(use_relpath=use_relpath, single=single):
1698+
yield f, arcname.replace(os.sep, "/")
16981699

16991700
def getResults(self):
17001701
if hasattr(self, "outputFile"):

mx.graalpython/suite.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,10 @@
773773
"\/test\/",
774774
"\/tests\/",
775775
"\/idle_test\/",
776+
"\\\\__pycache__\\\\",
777+
"\\\\test\\\\",
778+
"\\\\tests\\\\",
779+
"\\\\idle_test\\\\",
776780
],
777781
"license": ["PSF-License"],
778782
},

0 commit comments

Comments
 (0)