Changeset 1aac348


Ignore:
Timestamp:
04/03/12 22:36:47 (3 years ago)
Author:
Martin Kolman <martin.kolman@…>
Branches:
master
Children:
4598ca6
Parents:
bfa5d24
git-author:
Martin Kolman <martin.kolman@…> (04/03/12 22:36:47)
git-committer:
Martin Kolman <martin.kolman@…> (04/03/12 22:36:47)
Message:

set current directory to the directory where the modrana.py file is located

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modrana.py

    rd3b35f3 r1aac348  
    3131startTimestamp = time.time() 
    3232import math 
     33# set current directory to the directory 
     34# of this file 
     35# like this, modRana can be run from an absolute path 
     36# eq.: ./opt/modrana/modrana.py -u QML -d n9 
    3337import os 
     38os.chdir(os.path.dirname(os.path.abspath(__file__))) 
     39 
    3440import marshal 
    3541import traceback 
Note: See TracChangeset for help on using the changeset viewer.