From c135aa1c193877d06e6a01f1445577811786f479 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 23 Apr 2010 13:32:44 +0200 Subject: main: new function "load_apps" --- ranger/__main__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ranger/__main__.py b/ranger/__main__.py index 3ae71fc0..f22c2336 100644 --- a/ranger/__main__.py +++ b/ranger/__main__.py @@ -127,6 +127,19 @@ def load_settings(fm, clean): fm.apps = apps.CustomApplications() +def load_apps(fm, clean): + if not clean: + allow_access_to_confdir(ranger.arg.confdir, True) + try: + import apps + except ImportError: + from ranger.defaults import apps + allow_access_to_confdir(ranger.arg.confdir, False) + else: + from ranger.defaults import apps + fm.apps = apps.CustomApplications() + + def main(): """initialize objects and run the filemanager""" try: -- cgit 1.4.1-2-gfad0 tion> mirror of ranger - a simple, vim-like file managerakspecs <akspecs@tilde.institute>
summary refs log tree commit diff stats
path: root/test/tc_direction.py
blob: f45b4b36d30223f8e49caedf3a2ebe8daacdbedc (plain) (blame)
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