Changeset 8867 in genesis for tools


Ignore:
Timestamp:
Mar 2, 2011, 6:09:48 PM (14 years ago)
Author:
rick
Message:

This hacks will make be cry one day.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r8860 r8867  
    3535 
    3636
    37 NODE_DIR = os.getcwd() + '/../nodes'
     37NODE_DIR = os.path.dirname(__file__) + '/../nodes'
    3838__version__ = '$Id$'
    3939
     
    686686      import SocketServer
    687687      import CGIHTTPServer
     688      # CGI does not go backward, little hack to get ourself in the right working directory.
     689      os.chdir(os.path.dirname(__file__) + '/..')
    688690      try:
    689691        PORT = int(sys.argv[2])
Note: See TracChangeset for help on using the changeset viewer.