mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
Update openpype/tools/workfiles/window.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
c12e6995de
commit
7c70ea968d
1 changed files with 5 additions and 4 deletions
|
|
@ -101,11 +101,12 @@ class SidePanelWidget(QtWidgets.QWidget):
|
|||
# NOTE: we tried adding "win32security" module but it was not working
|
||||
# on all hosts so we decided to just support Linux until migration
|
||||
# to Ayon
|
||||
if platform.system() != "Windows":
|
||||
import pwd
|
||||
if platform.system().lower() == "window":
|
||||
return None
|
||||
import pwd
|
||||
|
||||
filestat = os.stat(file)
|
||||
return pwd.getpwuid(filestat.st_uid).pw_name
|
||||
filestat = os.stat(file)
|
||||
return pwd.getpwuid(filestat.st_uid).pw_name
|
||||
|
||||
def set_context(self, asset_id, task_name, filepath, workfile_doc):
|
||||
# Check if asset, task and file are selected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue