Skip to content

Commit 0b9559b

Browse files
authored
Use __FILE_FULL_PATH__ instead
Use __FILE_FULL_PATH__ instead of stupid /etc/issue
1 parent d3daf15 commit 0b9559b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ void main()
529529
// Code is executed in any case upon scope exit.
530530
scope(exit) { writeln("Exiting main."); }
531531
// File is closed deterministically at scope's end.
532-
foreach (line; File("/etc/issue").byLine())
532+
foreach (line; File(__FILE_FULL_PATH__).byLine())
533533
{
534534
writeln(line);
535535
}

0 commit comments

Comments
 (0)