yourcelf / olwidget

Javascript library to replace textareas that contain WKT data with editable OpenLayers maps, and a django app using it for django forms and admin.
Other
91 stars 44 forks source link

python setup.py install does not run #39

Closed skyl closed 14 years ago

skyl commented 14 years ago

root = os.path.dirname(file)

root == "" # for me

(pinax0.7.1-env)skyl@SCSI40:~/Code/python/src/yourcelf-olwidg$ python setup.py install Traceback (most recent call last): File "setup.py", line 8, in os.chdir(root) OSError: [Errno 2] No such file or directory: ''

yourcelf commented 14 years ago

yeah, my bad, should be:

root = os.path.abspath(os.path.dirname(__file__))

I've pushed that change in.

skyl commented 14 years ago

Consider namespacing the media like this:

http://github.com/skyl/olwidget/commit/de6c29b774fcb708c1e17f89b7bf034b5acea743

that way, setup.py will work with staticfiles/pinax. Seems like the way the community is heading.

yourcelf commented 14 years ago

Good idea. I'm going to look at this a little more thoroughly later today.