summary refs log tree commit diff stats
path: root/doc/pydoc/ranger.fm.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/pydoc/ranger.fm.html')
-rw-r--r--doc/pydoc/ranger.fm.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/pydoc/ranger.fm.html b/doc/pydoc/ranger.fm.html
index e96f03af..19d06331 100644
--- a/doc/pydoc/ranger.fm.html
+++ b/doc/pydoc/ranger.fm.html
@@ -6,7 +6,7 @@
 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
 <tr bgcolor="#7799ee">
 <td valign=bottom>&nbsp;<br>
-<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.fm</strong></big></big> (version 1.0.1)</font></td
+<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.fm</strong></big></big> (version 1.0.2)</font></td
 ><td align=right valign=bottom
 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/work/ranger/ranger/fm.py">/home/hut/work/ranger/ranger/fm.py</a></font></td></tr></table>
     <p><tt>#&nbsp;Copyright&nbsp;(c)&nbsp;2009,&nbsp;2010&nbsp;hut&nbsp;&lt;hut@lavabit.com&gt;<br>
@@ -192,7 +192,7 @@ Data descriptors inherited from <a href="ranger.shared.html#Awareness">ranger.sh
 </dl>
 <hr>
 Data and other attributes inherited from <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>:<br>
-<dl><dt><strong>settings</strong> = &lt;ranger.ext.openstruct.OpenStruct object at 0x7f28d0aa5bd0&gt;</dl>
+<dl><dt><strong>settings</strong> = &lt;ranger.ext.openstruct.OpenStruct object at 0x7f6a9067fbd0&gt;</dl>
 
 </td></tr></table></td></tr></table><p>
 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
@@ -214,5 +214,5 @@ Fractions&nbsp;of&nbsp;a&nbsp;second&nbsp;may&nbsp;be&nbsp;present&nbsp;if&nbsp;
 <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
 <td width="100%"><strong>CTRL_C</strong> = 3<br>
 <strong>TICKS_BEFORE_COLLECTING_GARBAGE</strong> = 100<br>
-<strong>__version__</strong> = '1.0.1'</td></tr></table>
+<strong>__version__</strong> = '1.0.2'</td></tr></table>
 </body></html>
\ No newline at end of file
^
2144cf26 ^
811b7c28 ^



65cb1a32 ^
0128bee7 ^


a1d7ed6e ^
58d4900c ^
0128bee7 ^


45cf5174 ^
39edded7 ^

a1d7ed6e ^
b4a0c387 ^
b4a0c387 ^


0128bee7 ^





b4a0c387 ^





0128bee7 ^






01c89bb5 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
                                                                 
 



                                                                      
 






                                                                       
 
                                                 
 

          
                                            
 
                    
                     



                                   
 


                                                               
 
                                         


                                     
                 

                                                                  
 
                                                        


                                                                         





                                                                        





                                                                               






                                                                          


                                                                    
# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

"""Ranger - file browser for the unix terminal"""

import os
import sys
from ranger.ext.openstruct import OpenStruct

__license__ = 'GPL3'
__version__ = '1.0.4'
__credits__ = 'Roman Zimbelmann'
__author__ = 'Roman Zimbelmann'
__maintainer__ = 'Roman Zimbelmann'
__email__ = 'romanz@lavabit.com'

__copyright__ = """
Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
"""

USAGE = '%prog [options] [path/filename]'
DEFAULT_CONFDIR = '~/.ranger'
RANGERDIR = os.path.dirname(__file__)
LOGFILE = '/tmp/errorlog'
arg = OpenStruct(
		debug=False, clean=False, confdir=DEFAULT_CONFDIR,
		mode=0, flags='', targets=[])

#for python3-only versions, this could be replaced with:
#def log(*objects, start='ranger:', sep=' ', end='\n'):
#	print(start, *objects, end=end, sep=sep, file=open(LOGFILE, 'a'))
def log(*objects, **keywords):
	"""
	Writes objects to a logfile (for the purpose of debugging only.)
	Has the same arguments as print() in python3.
	"""
	if LOGFILE is None or arg.clean:
		return
	start = 'start' in keywords and keywords['start'] or 'ranger:'
	sep   =   'sep' in keywords and keywords['sep']   or ' '
	_file =  'file' in keywords and keywords['file']  or open(LOGFILE, 'a')
	end   =   'end' in keywords and keywords['end']   or '\n'
	_file.write(sep.join(map(str, (start, ) + objects)) + end)

def relpath_conf(*paths):
	"""returns the path relative to rangers configuration directory"""
	if arg.clean:
		assert 0, "Should not access relpath_conf in clean mode!"
	else:
		return os.path.join(arg.confdir, *paths)

def relpath(*paths):
	"""returns the path relative to rangers library directory"""
	return os.path.join(RANGERDIR, *paths)