shogun-toolbox / shogun-demo

Shogun Toolbox Interactive Web Demos
7 stars 17 forks source link

arts/asp #25

Closed zhengyang92 closed 10 years ago

sonney2k commented 10 years ago

man your image! is that nekobus?

sonney2k commented 10 years ago

Please don't put any of the arts/asp code directly into the demos. Rather do sth like creating a settings.py

where you do

import sys
sys.path.insert(0,SHOGUNAPPLICATIONSPATH_ARTS)
sys.path.insert(0,SHOGUNAPPLICATIONSPATH_ASP)

etc

sonney2k commented 10 years ago

waiting for an updated PR...

sonney2k commented 10 years ago

Any news?

zhengyang92 commented 10 years ago

@sonney2k, I'm stuck with the import of asp class. The class is available only when the source file ends with .py, I've tried 'imp.load_source', but in that way python cannot import anything in asp. so could we make a symbolic link 'asp.py' to original 'asp' under shogun/applications/asp/?

sonney2k commented 10 years ago

@ZhengyangL did you create a init.py file in the arts dir so you can import it?

sonney2k commented 10 years ago

I just added the files now you should be fine once you set the proper PYTHONPATH or do the sys.path.insert above

sonney2k commented 10 years ago

@ZhengyangL if this is now not working for you come to IRC and show my what you do exactly