# -*- coding: utf-8 -*-
# Minimal set of functions and variables from 0.2.1's crypto_util.py needed to
# regenerate journalist designations from soure's filesystem id's.
import random as badrandom

nouns = file("nouns.txt").read().split('\n')
adjectives = file("adjectives.txt").read().split('\n')

def displayid(n):
    badrandom_value = badrandom.WichmannHill()
    badrandom_value.seed(n)
    return badrandom_value.choice(adjectives) + " " + badrandom_value.choice(nouns)


@@ -163,16 +163,26 @@
 m id's.%0A
+import os%0A
 import r
@@ -205,21 +205,180 @@
 om%0A%0A
-nouns = file(
+# Find the absolute path relative to this file so this script can be run anywhere%0ASRC_DIR = os.path.dirname(os.path.realpath(__file__))%0A%0Anouns = file(os.path.join(SRC_DIR, 
 %22nou
@@ -381,24 +381,25 @@
 %22nouns.txt%22)
+)
 .read().spli
@@ -424,16 +424,38 @@
  = file(
+os.path.join(SRC_DIR, 
 %22adjecti
@@ -463,16 +463,17 @@
 es.txt%22)
+)
 .read().

Load files from absolute paths so this can be run from anywhere