#1  
Old 7th April 2007, 15:30
flebber flebber is offline
Junior Member
 
Join Date: Apr 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default View Source Files

Hi

I am learning python and wanted to view the source files of a few programs to learn how they were getting the job done. I am on PCLOS 07 (Mandriva Base) and thought the files would be in the usr/src or usr/share directories however I cannot locate them.

Am I missing something ? Where Should I be looking.

Cheers
Reply With Quote
Sponsored Links
  #2  
Old 8th April 2007, 02:10
flebber flebber is offline
Junior Member
 
Join Date: Apr 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

All the tutorials just say "Look at the Source" but with no explanation how. I have done more research into it.

In the /usr/lib I see a lot of files of the "file.so", in /usr/bin I have found most of it. Also have found that KDE apps source has a good online browsing facility http://techbase.kde.org/Getting_Started and also this site called Cross Referencing linux http://lxr.linux.no/blurb.html.
Reply With Quote
  #3  
Old 8th April 2007, 15:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What exactly is the problem:
- You can't find the files you're looking for, or
- You don't know how to open them to see their contents?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 8th April 2007, 16:00
flebber flebber is offline
Junior Member
 
Join Date: Apr 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well I was reading the the "Cathedral and the Bazaar" by Eric Raymond and The learning python book 2nd edition by Mark Lutz, and both refer to reading python source of current programs to learn better technique and understanding.

So my questions was yes where is the source ? I have now found some of it, and those I have opened with Kate to read. Are there more is there a better way to view them ?
Reply With Quote
  #5  
Old 9th April 2007, 17:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by flebber
So my questions was yes where is the source ? I have now found some of it, and those I have opened with Kate to read. Are there more is there a better way to view them ?
The location depends on each single Python application.

To view the sources, you can use any text editor like gedit, vi, nano, joe, ...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 10th April 2007, 10:07
flebber flebber is offline
Junior Member
 
Join Date: Apr 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So using slocate for example would be the best method to identify all file locations for each program them.
Reply With Quote
  #7  
Old 11th April 2007, 15:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

You could download the sources and unpack them on your desktop computer (before installing them).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
View files on a "slave" drive: Data Recovery help jsabarese Technical 19 18th October 2010 12:42
Dspam planet_fox General 6 20th January 2007 18:42
Network questions regarding Ubuntu Server lubod Installation/Configuration 7 3rd January 2007 18:53
Upgrade from 2.2.0 to 2.2.1 successful but SSL and IMAP stopped working teleriddler Installation/Configuration 8 29th April 2006 14:25
Logging in to isp config Jrdgames General 43 6th March 2006 19:04


All times are GMT +2. The time now is 20:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.