Changeset 3275

Show
Ignore:
Timestamp:
01/26/12 21:07:00 (4 months ago)
Author:
erkn
Message:

Fix path when compiling in folder .

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mcxtrace-1.0/src/mcrun2/mcstas.py

    r3274 r3275  
    8080        self.dir = tempfile.mkdtemp(prefix='mcstas-') 
    8181        self.cpath = '%s/%s.c' % (self.dir, self.name) 
    82         self.binpath = '%s/%s.out' % (dirname(self.path), self.name) 
     82        self.binpath = '%s/%s.out' % (dirname(self.path) or '.', self.name) 
    8383 
    8484        # Remove temporary files at exit