I'm still not understanding what you mean. Can you give me the line you
want?


On Sat, May 17, 2014 at 8:44 PM, Cody Maloney <notifications@github.com>wrote:

> In orly/server/ws.cc:
>
> > @@ -277,6 +282,59 @@ class TWsImpl final
> >          GetSession()->Import(path, load_threads, merge_threads, merge_sim);
> >        }
> >
> > +      /* Compile Orlyscript into an installable package. */
> > +      virtual void operator()(const TCompileStmt *stmt) const override {
> > +        assert(this);
> > +        assert(stmt);
> > +        TTmpCopyToFile tmp_file(
> > +            Conn->Ws->TmpDirMaker.GetPath(), Translate(stmt->GetStrExpr()),
> > +            "tmp_pkg_", ".orly");
> > +        map<string, string> reply;
> > +        try {
> > +          bool found_root = false;
> > +          Jhm::TAbsBase root = Jhm::TAbsBase::Find("__orly__"
> , found_root);
> > +          auto pkg = Compiler::Compile(
> > +              root.GetAbsPath(tmp_file.GetPath()),
> > +              Jhm::TAbsBase(string()), found_root, true, false);
>
> Jhm::TAbsBase(cmd.PackageDir) should be enough.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/orlyatomics/orly/pull/65/files#r12772016>
> .
>