about summary refs log tree commit diff
path: root/pkgs/tools/audio/botamusique/unconditional-relative-state-paths.patch
blob: 3642a034fc88b6f3931c0ef0030f4a86b251e774 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/util.py b/util.py
index bfec1ed..0546772 100644
--- a/util.py
+++ b/util.py
@@ -22,16 +22,7 @@ log = logging.getLogger("bot")
 
 
 def solve_filepath(path):
-    if not path:
-        return ''
-
-    if path[0] == '/':
-        return path
-    elif os.path.exists(path):
-        return path
-    else:
-        mydir = os.path.dirname(os.path.realpath(__file__))
-        return mydir + '/' + path
+    return path
 
 
 def get_recursive_file_list_sorted(path):