Commits

dan mackinlay committed 242d082

bloody hell. don't absolutise path - makes things horribly inflexible

Comments (0)

Files changed (1)

     def __init__(self, initval=[], work_dir=None, *args, **kwargs):
         if work_dir is None:
             work_dir = unicode(get_tmp_dir())
-        self.work_dir = path(work_dir).realpath().abspath()
+        self.work_dir = path(work_dir)
         if not self.work_dir.exists():
             self.work_dir.mkdir()
         for key, val in getattr(initval, 'iteritems', initval.__iter__)():
     def __getstate__(self):
         state = self.__dict__.copy()
         # path objects seem to occasionally resurrect gracelessly
-        state['work_dir'] = unicode(state['work_dir'].realpath().abspath())
+        state['work_dir'] = unicode(state['work_dir'])
         return state
     
     def __setstate__(self, dict):