summary refs log tree commit diff stats
path: root/pkg
Commit message (Collapse)AuthorAgeFilesLines
* Bump version to v0.4.3 v0.4.3Andinus2020-03-151-1/+1
|
* Bump version to v0.4.2 v0.4.2Andinus2020-03-151-1/+1
|
* Fix cetus.Version functionAndinus2020-03-151-1/+1
|
* Bump version to v0.4.1 v0.4.1Andinus2020-03-141-1/+3
|
* Add version flagAndinus2020-03-142-0/+22
|
* Add cetus-nasa program v0.4.0Andinus2020-03-141-0/+109
| | | | cetus-nasa uses NASA's API to get Astronomy Picture of the Day.
* Split project into multiple programsAndinus2020-03-141-89/+0
| | | | Re-initialization to split project into multiple programs
* Add support for random photo as background v0.3.1Andinus2020-03-141-0/+43
|
* Unexport GetPathFromID & further break it in 2 functionsAndinus2020-03-141-12/+16
| | | | | appendSizeToPath will get repeated later so seperated it into a different function
* Break SetFromID in 2 functions v0.3.0Andinus2020-03-141-8/+13
| | | | | GetPathFromID returns the path of the photo & SetFromID first gets the path from GetPathFromID then uses background.Set to set the background
* Fix SetFromID & add usage in readmeAndinus2020-03-141-1/+1
|
* Add photoID supportAndinus2020-03-142-0/+39
| | | | photo-id flag can be used to set a specific photo as background
* Add background package & Set functionAndinus2020-03-141-0/+25
f1174f2be5851acd47e066b'>^
3de15ddd ^
a66c4a26 ^


f027adc0 ^
5c210a96 ^

3de15ddd ^

5c210a96 ^
fb275079 ^

5c210a96 ^
3d566884 ^
a1d7ed6e ^
3d566884 ^
f8e96a97 ^
9bc5d95c ^

465bff73 ^




f027adc0 ^
f8e96a97 ^

0b5c4cbe ^
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
                 
              
















                                                                              




                                                                         

               
                        
             
 
                   
                                                                      
 
                                                    
                           
 
                 
                  

                           
    
                                                                


        
 

                                                                

                                                           
 

                                                              
                              
    
                               
 
                                   

                                                      




                                                               
 

              
 
#!/usr/bin/python
# coding=utf-8
# ranger: Explore your forest of files from inside your terminal
#
# Copyright (c) 2009, 2010 hut <hut@lavabit.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# ----------------------------------------------------------------------------
#
# An embedded shell script. It allows you to change the directory
# of the parent shell to the last visited directory in ranger after exit.
# For more information, check out doc/cd-after-exit.txt
# To enable this, start ranger with:
#     source /path/ranger /path/ranger
"""":
if [ $1 ]; then
	ranger_exec="$1"
	shift

	trap "" INT
	exec 3< <($ranger_exec --cd-after-exit $@ 3>&1 1>&2 2>&3 3>&-)

	while read ranger_output; do false; done <&3
	cd "$ranger_output"

	exec 3<&-
	trap - INT
	unset ranger_exec
	unset ranger_output
else
	echo "usage: source path/to/ranger.py path/to/ranger.py"
fi
return 1
"""

# 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 import main

except ImportError as errormessage:
	import sys
	if not set(sys.argv) & set(('--debug', '-d')):
		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:
	main()