Skip to content

Commit

Permalink
optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Lich-Corals committed Mar 16, 2024
1 parent d29a7ce commit bba74b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nautilus-fileconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
# --- Imports ---

import gi
gi_version_major = 3 if 30 <= gi.version_info[1] < 40 else 4
giVersion = 3 if 30 <= gi.version_info[1] < 40 else 4
gi.require_versions({
'Nautilus': '3.0' if gi_version_major == 3 else '4.0',
'Gdk': '3.0' if gi_version_major == 3 else '4.0',
'Gtk': '3.0' if gi_version_major == 3 else '4.0'
'Nautilus': '3.0' if giVersion == 3 else '4.0',
'Gdk': '3.0' if giVersion == 3 else '4.0',
'Gtk': '3.0' if giVersion == 3 else '4.0'
})
from gi.repository import Nautilus, GObject, Gdk, Gtk
from typing import List
Expand Down

0 comments on commit bba74b2

Please sign in to comment.