File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,6 @@ const platforms = {
60
60
}
61
61
};
62
62
63
- final dartFile = Glob ("**.dart" );
64
-
65
63
const junkFilesDesktop = [
66
64
"**.c" ,
67
65
"**.h" ,
@@ -462,7 +460,9 @@ class PackageCommand extends Command {
462
460
Future <void > cleanupDir (Directory directory, List <String > filesGlobs) async {
463
461
verbose ("Cleanup directory ${directory .path }: $filesGlobs " );
464
462
await cleanupDirRecursive (
465
- directory, filesGlobs.map ((g) => Glob (g.replaceAll ("\\ " , "/" ))));
463
+ directory,
464
+ filesGlobs.map ((g) => Glob (g.replaceAll ("\\ " , "/" ),
465
+ context: path.Context (current: directory.path))));
466
466
}
467
467
468
468
Future <bool > cleanupDirRecursive (
@@ -576,7 +576,8 @@ class PackageCommand extends Command {
576
576
}
577
577
578
578
void duplicateSysconfigFile (String pythonDir) {
579
- final sysConfigGlob = Glob ("python/lib/python3.*/_sysconfigdata__*.py" );
579
+ final sysConfigGlob = Glob ("python/lib/python3.*/_sysconfigdata__*.py" ,
580
+ context: path.Context (current: pythonDir));
580
581
for (var sysConfig in sysConfigGlob.listSync (root: pythonDir)) {
581
582
// copy the first found sys config and exit
582
583
if (sysConfig is File ) {
You can’t perform that action at this time.
0 commit comments