mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
More specific path checks (file vs directory).
This commit is contained in:
1 parent
8020c2e99c
commit
96231e3f7f
8 files changed
+16
-16
No files matched your search
@@ -25,6 +25,6 @@ def image(request):
|
||||
|
||||
cwd = os.path.dirname(os.path.abspath(__file__))
|
||||
image_path = os.path.join(cwd, "c3725.image")
|
||||
if not os.path.exists(image_path):
|
||||
if not os.path.isfile(image_path):
|
||||
return None
|
||||
return image_path
|
||||
Reference in new issue
Block a user