:require files in current directory?

57 views
Skip to first unread message

Jim Tittsler

unread,
Jul 1, 2012, 1:16:41 AM7/1/12
to clojure...@googlegroups.com
Is it intentional that the current directory is not searched for
required files? For example:

cd examples/flask
clojurepy main.clj

can't find utils.clj unless I explicitly add '.' to my PYTHONPATH.

Eric Shull

unread,
Jul 25, 2012, 9:30:00 AM7/25/12
to clojure...@googlegroups.com
Sorry no one got back to you sooner. To my knowledge this is not intentional. I suggest you create an issue on GitHub: https://github.com/halgari/clojure-py/issues

Antony Lee

unread,
Jul 29, 2012, 1:35:15 AM7/29/12
to clojure...@googlegroups.com
I had a different bug with flask, that I just fixed in master, but I cannot reproduce yours... Can you give it a try with the latest version?
Antony

2012/7/25 Eric Shull <eric....@gmail.com>

Rainer Schuster

unread,
Jul 29, 2012, 7:57:56 AM7/29/12
to clojure...@googlegroups.com, anton...@berkeley.edu
As Jim already stated out. The current working directory is not in the sys.path and therefore can't be 'required'. I filed an issue with a failing example and the solution attached after Anthony requested for a minimal failing example:

Antony Lee

unread,
Jul 29, 2012, 8:32:42 PM7/29/12
to clojure...@googlegroups.com
That's weird, because the example you give works without any problem on my computer.  Perhaps that is a Linux/Windows thing?  I don't have Windows easily available here, but could someone with access to both OSes give it a try?

2012/7/29 Rainer Schuster <rainersc...@googlemail.com>
Reply all
Reply to author
Forward
0 new messages