Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Commit

Permalink
Fix incorrect topology path when running on Windows
Browse files Browse the repository at this point in the history
Fixes #9
  • Loading branch information
TwoWheelDev committed Sep 9, 2014
1 parent fe44315 commit 95864e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gns3converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ def read_topology(self):
encoding='utf-8')
except SyntaxError:
logging.error('Error loading .net file')
exit()
sys.exit(1)
except IOError:
logging.error('Cannot open topology file')
exit()
sys.exit(1)

vtor = Validator()
res = config.validate(vtor, preserve_errors=True)
Expand Down
3 changes: 3 additions & 0 deletions gns3converter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def main():
logging.getLogger(__name__)

# Add the main topology to the list of files to convert
if args.topology == 'topology.net':
args.topology = os.path.join(os.getcwd(), 'topology.net')

topology_files = [{'file': topology_abspath(args.topology),
'snapshot': False}]

Expand Down

0 comments on commit 95864e9

Please sign in to comment.