Last active
May 5, 2016 21:36
-
-
Save lehitoskin/3449f98d3f047de4cc528fb3b562c36e to your computer and use it in GitHub Desktop.
Racket test pathing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env racket | |
#lang racket/gui | |
(define frame | |
(new frame% | |
[label "foo"] | |
[height 30] | |
[width 300])) | |
(define msg | |
(new message% | |
[parent frame] | |
[label (format "exists? img/: ~a" (directory-exists? "img/"))])) | |
(define msg-exec | |
(new message% | |
[parent frame] | |
[label (format "exec-file: ~a" (find-system-path 'exec-file))])) | |
(define msg-run | |
(new message% | |
[parent frame] | |
[label (format "run-file: ~a" (find-system-path 'run-file))])) | |
(define msg-cwd | |
(new message% | |
[parent frame] | |
[label (format "current-directory: ~a" (current-directory))])) | |
(send frame show #t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment