Code Monkey home page Code Monkey logo

glue-bot's People

Contributors

astrofrog avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

chrisbeaumont

glue-bot's Issues

py2app features we may want

I was glancing through the py2app documentation, and there are a few features we may want to consider:

  • --use-pythonpath and --site-packages seem to set up site.path: would these allow somebody to import other code from their own machine? That would be great, assuming it doesn't interfere with the libraries that come bundled in the app
  • --no-chdir - does this address the current working directory bug (issue #2)?
  • --iconfile - we will want to add this once we have an icon!

Library updates needed

ATPy
Still on an old version that doesn't play nicely with unicode file paths

Matplotlib
Best to upgrade to the newest version (v 1.2 slated to be released on Oct 15, so that's probably the long term target). A bug in older versions prevents semi-transparent image layers from rendering correctly (glue-viz/glue#92). A temporary fix is to use the latest dev version

py2app changes current working directory

Both glueqt and Glue.app will execute any python script passed as an argument. However, they run from a different working directory:

cwd.py:

import os
print "Current directory: ', os.getcwd()

glueqt:

beaumont@beaumont-2:~$ glueqt ~/cwd.py
Current directory:  /Users/beaumont

Glue.app

beaumont@beaumont-2:~$ /Applications/Glue.app/Contents/MacOS/Glue ~/cwd.py
Current directory:  /Applications/Glue.app/Contents/Resources

Because of this, the full path to any script passed to Glue.app must be provided:

beaumont@beaumont-2:~$ /Applications/Glue.app/Contents/MacOS/Glue cwd.py
CRITICAL:   File "/Applications/Glue.app/Contents/Resources/__boot__.py", line 39, in <module>
<trimmed>
Error: [Errno 2] No such file or directory: 'cwd.py'
2012-09-12 15:59:23.614 Glue[95094:707] Glue Error

Does py2app provide a way around this? If not, we can figure out a hack to put in Glue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.