[racket] executable starting in submodule

From: Bert De Ketelaere (bedeke at hotmail.com)
Date: Mon Apr 14 11:06:15 EDT 2014

Hello,

is it possible to let an embedded-executable start in a submodule?
If yes, how do you do this?

I tried
      (create-embedding-executable
         exe-name
         #:gracket? #f
         #:verbose? #f
         #:modules (if (build-subs B)
                                 `((#f ,filename ,(submods))
                                 `((#f ,filename)))
         #:configure-via-first-module? #t
         #:literal-expression
         (parameterize ([current-namespace (make-base-empty-namespace)])
           (namespace-require 'racket/base)
           (if (build-subs B)
               (compile `(namespace-require '(submod ',(string->symbol (path->string short-program-name))
                                                                                        ,(string->symbol (build-subs B)))))
               (compile `(namespace-require '',(string->symbol (path->string short-program-name)))))))

but I get:
    require: unknown module
          module name: #<resolved-module-path:(submod 'filename submods)>
          context...:
           loop

Also, does the resolved-module-path structure mean that the path was completely resolved during compilation, or only the first step?
Any help would be appreciated,

Bert
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140414/1cfb1530/attachment.html>

Posted on the users mailing list.