• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Ticket
  • Next Ticket →

Ticket #977 (new defect)

Opened 7 months ago

Need absolute PYTHONPATH for scripts

Reported by: jmoore Owned by: jmoore
Priority: major Milestone: OMERO-Beta4
Component: Scripting Version: 3.0-M1
Keywords: icegrid, icepatch, blitz Cc: donald, callan

Description

Adding a workaround to omero/processor.py:

+        # WORKAROUND
+        # Currently duplicating the logic here as in the PYTHONPATH
+        # setting of the grid application descriptor (see etc/grid/*.xml)
+        # This should actually be taken care of in the descriptor itself
+        # by having setting PYTHONPATH to an absolute value. This is
+        # not currently possible with IceGrid (without using icepatch --
+        # see 39.17.2 "node.datadir).
+        self.env.append("PYTHONPATH", os.path.join(os.getcwd(), "lib"))

Optimal would be to simply start using icepatch such that all nodes only need:

  icegridnode --Ice.Config=NODENAME.config

and they then download their configuration and are ready to go using ${node.datadir}.

Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/