Skip to content

Commit

Permalink
Merge pull request #70 from peastman/master
Browse files Browse the repository at this point in the history
When loading a local file through GUI, record the source filename
  • Loading branch information
peastman committed Nov 27, 2014
2 parents 5faa2e4 + ffa808a commit d3f014a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdbfixer/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def startPageCallback(parameters, handler):
if 'type' in parameters:
if parameters.getfirst('type') == 'local':
fixer = PDBFixer(pdbfile=parameters['pdbfile'].value.decode().splitlines())
fixer.source = parameters['pdbfile'].filename
else:
id = parameters.getfirst('pdbid')
try:
Expand Down

0 comments on commit d3f014a

Please sign in to comment.