Skip to content

Commit 88d1588

Browse files
committed
Switched PySide imports to qtpy and changed she bang to be platform agnostic
1 parent 19f8d5f commit 88d1588

File tree

7 files changed

+12
-13
lines changed

7 files changed

+12
-13
lines changed

scripts/ingestIt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
#! /usr/local/bin/python3
1+
#!/usr/bin/env python
2+
23
import os
34
import sys
45
import re
56
from pathlib import Path
67
import json
78
from enum import Enum
89

9-
from PySide2 import QtGui, QtWidgets, QtCore
10+
from qtpy import QtGui, QtWidgets, QtCore
1011

1112
import qtmodern.styles
1213
import qtmodern.windows

scripts/mrFilmOut

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#! /usr/local/bin/python3
1+
#!/usr/bin/env python
22

33
import sys
44
import os
55
import re
66
import shutil
77

88
import xlsxwriter
9-
from PySide2 import QtGui, QtWidgets, QtCore
9+
from qtpy import QtGui, QtWidgets, QtCore
1010
import qtmodern.styles
1111
import qtmodern.windows
1212

scripts/noteBao

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#! /usr/local/bin/python3
1+
#!/usr/bin/env python
22

33
import sys
44
import os
55
from os.path import expanduser
6-
from PySide2 import QtWidgets, QtGui, QtCore
6+
from qtpy import QtWidgets, QtGui, QtCore
77

88
import qtmodern.styles
99
import qtmodern.windows

scripts/vfxConfigManager

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#! /usr/local/bin/python3
1+
#!/usr/bin/env python
22

3-
from PySide2 import QtWidgets, QtCore
3+
from qtpy import QtWidgets, QtCore
44
import qtmodern.styles
55
import qtmodern.windows
66
import sys

scripts/vfxTray

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/local/bin/python3
1+
#!/usr/bin/env python
22

33
import os
44
import subprocess
@@ -22,8 +22,6 @@ def openFilmOut():
2222
def openConfigManager():
2323
subprocess.call(["python3", os.path.join(LOCATION, "vfxConfigManager")])
2424

25-
26-
2725
def main():
2826
app = QtWidgets.QApplication([])
2927
app.setQuitOnLastWindowClosed(False)

vfxClientToolkit/ui/about.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from PySide2.QtWidgets import QMessageBox
1+
from qtpy.QtWidgets import QMessageBox
22

33
#QMessageBox.about(self, "About PySide, Platform and version.",
44
#"""<b> about.py version %s </b>

vfxClientToolkit/ui/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from PySide2 import QtGui
1+
from qtpy import QtGui
22

33
def centerWidget(parent):
44
frame = parent.frameGeometry()

0 commit comments

Comments
 (0)