Skip to content

Commit

Permalink
Move PATH debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Jan 12, 2024
1 parent 18be274 commit 88ed940
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gns3/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ def main():
]

os.environ["PATH"] = os.pathsep.join(frozen_dirs) + os.pathsep + os.environ.get("PATH", "")
log.debug("PATH content: {}".format(os.environ["PATH"]))

if options.project:
os.chdir(frozen_dir)


def exceptionHook(exception, value, tb):

if exception == KeyboardInterrupt:
Expand Down Expand Up @@ -262,6 +262,7 @@ def exceptionHook(exception, value, tb):
log.info("GNS3 GUI version {}".format(__version__))
log.info("Copyright (c) 2007-{} GNS3 Technologies Inc.".format(current_year))
log.info("Application started with {}".format(" ".join(sys.argv)))
log.debug("PATH={}".format(os.environ["PATH"]))

# update the exception file path to have it in the same directory as the settings file.
exception_file_path = os.path.join(LocalConfig.instance().configDirectory(), exception_file_path)
Expand Down

0 comments on commit 88ed940

Please sign in to comment.