about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-04 10:19:50 -0700
committerhut <hut@lavabit.com>2009-06-11 14:51:37 +0200
commit72c3a902a00ff9d88ed2fb666f22a5303c3fe8cd (patch)
treed275db368f03682b58b127efeefb8776478a430d /code
parente8beb6eb5a2db419e1426e23aee9d919888af5da (diff)
downloadranger-72c3a902a00ff9d88ed2fb666f22a5303c3fe8cd.tar.gz
more generic require system
Diffstat (limited to 'code')
-rw-r--r--code/directory.rb1
-rw-r--r--code/types.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/code/directory.rb b/code/directory.rb
index c42392aa..a5bee819 100644
--- a/code/directory.rb
+++ b/code/directory.rb
@@ -1,3 +1,4 @@
+require 'code/extensions/basic.rb'
 class Directory
 	BAD_TIME = Time.at(0)
 	MOVIE_EXTENSIONS = %w(avi mpg mpeg mp4 mp5 ogv ogm wmv mkv flv fid vob div divx)
diff --git a/code/types.rb b/code/types.rb
index adb03219..6d3999c7 100644
--- a/code/types.rb
+++ b/code/types.rb
@@ -1,6 +1,6 @@
 module Fm
 	MIMETYPES = Marshal.load(File.read(
-		File.join(FM_DIR, 'data', 'mime.dat')))
+		File.join(MYDIR, 'data', 'mime.dat')))
 
 	def self.get_default_flags(file)
 		case file.mimetype