User:Gcerchio.diary: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: == GIT == When you mess up a file and want it back to what it was cd into the directory and: '''git checkout HEAD -- gridwidget.py''' When you want an activity that sugar-jhbuild doe...)
 
No edit summary
Line 8: Line 8:


'''git-clone git://dev.laptop.org/projects/tamtam'''
'''git-clone git://dev.laptop.org/projects/tamtam'''

== Using Eclipse with OLPC ==

When you want to start a new activity project using another activity as the base:

Create a new pydev project
''File->import''
''General->File System''
''Find your baseline activity's folder

When you want Eclipse to see all the OLPC imports:

''Project->Properties''
select PyDev - PYTHONPATH
in the External Source Folders Pane button '''Add source folder'''
find the sugar-jhbuild/build/lib/python2.5/site-packages folder
select button '''Apply'''
select button '''OK'''
''Project->Clean..''

Revision as of 19:11, 23 November 2007

GIT

When you mess up a file and want it back to what it was cd into the directory and:

  git checkout HEAD -- gridwidget.py

When you want an activity that sugar-jhbuild does not bring down:

   git-clone git://dev.laptop.org/projects/tamtam

Using Eclipse with OLPC

When you want to start a new activity project using another activity as the base:

   Create a new pydev project
   File->import
   General->File System
   Find your baseline activity's folder

When you want Eclipse to see all the OLPC imports:

   Project->Properties
   select PyDev - PYTHONPATH
   in the External Source Folders Pane button Add source folder
   find the sugar-jhbuild/build/lib/python2.5/site-packages folder
   select button Apply 
   select button OK
   Project->Clean..