summary refs log tree commit diff stats
path: root/src/gifs
Commit message (Collapse)AuthorAgeFilesLines
* new bannerCrystal2024-01-055-0/+0
|
* updateCrystal2023-12-021-0/+0
|
* updateCrystal2023-11-271-0/+0
|
* updateCrystal2023-11-271-0/+0
|
* commitCrystal2023-11-271-0/+0
|
* UpdateCrystal2023-11-241-0/+0
|
* UpdateCrystal2023-11-214-0/+0
|
* UpdateCrystal2023-11-1211-0/+0
|
* UpdateCrystal2023-11-111-0/+0
|
* UpdateCrystal2023-11-101-0/+0
|
* UpdateCrystal2023-11-094-0/+0
|
* UpdateCrystal2023-11-095-0/+0
|
* UpdateCrystal2023-11-032-0/+0
|
* UpdateCrystal2023-11-011-0/+0
|
* UpdateCrystal2023-11-012-0/+0
|
* UpdateCrystal2023-10-281-0/+0
|
* Finally, an updateCrystal2023-10-11177-0/+0
r DB init in tests, cleaned up test config init' href='/gbmor/getwtxt/commit/svc/db_test.go?h=v0.4.0&id=e10fc64f9855262c4a9511025dffcc1d603c7206'>e10fc64 ^
35e31f0 ^

















1a15258 ^
35e31f0 ^






e10fc64 ^

35e31f0 ^

1a15258 ^
35e31f0 ^

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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
                                                      









                                          

                    



                                                                       
 



                                                                                              
 
                                                                                                           
 




                                                                                                              
                               












                                                                        
                        
 







                                                                                  

                                           
                    

















                                                                                                                   
                               






                                             

                      

                 
#!/usr/bin/python -O
# coding=utf-8
#
# Ranger: Explore your forest of files from inside your terminal
# 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/>.
#
# ----------------------------------------------------------------------------
#
# An embedded shell script. It allows you to change the directory
# after you exit ranger by starting it with: source ranger ranger
"""":
if [ $1 ]; then
	if [ -z $XDG_CONFIG_HOME ]; then
		$@ --fail-unless-cd && cd "$(grep \^\' ~/.config/ranger/bookmarks | cut -b3-)"
	else
		$@ --fail-unless-cd && cd "$(grep \^\' "$XDG_CONFIG_HOME"/ranger/bookmarks | cut -b3-)"
	fi
else
	echo "usage: source path/to/ranger.py path/to/ranger.py"
fi
return 1
"""

import sys

# Redefine the docstring, since the previous one was hijacked to
# embed a shellscript.
__doc__ = """Ranger - file browser for the unix terminal"""

# Importing the main method may fail if the ranger directory
# is neither in the same directory as this file, nor in one of
# pythons global import paths.
try:
	from ranger.__main__ import main
except ImportError:
	if '-d' not in sys.argv and '--debug' not in sys.argv:
		print("Can't import the main module.")
		print("To run an uninstalled copy of ranger,")
		print("launch ranger.py in the top directory.")
	else:
		raise
else:
	sys.exit(main())