Skip to content

Commit

Permalink
code 정리하여 update
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjin72 committed Jun 23, 2023
1 parent fbd4425 commit f848885
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions controller.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from PySide2.QtWidgets import QApplication, QFileDialog
from PySide2.QtWidgets import *

from view import AssetUploaderView
from model import AssetUploaderModel
Expand Down Expand Up @@ -31,7 +31,9 @@ def current_asset_type(self):
return asset_type

def btn_browse_clicked(self):
self.dir_path = QFileDialog.getExistingDirectory()
dialog = QFileDialog()
dialog.setDirectory(r'C:\shotgrid')
self.dir_path = dialog.getExistingDirectory()
self.line_path.setText(self.dir_path)

def btn_upload_clicked(self):
Expand Down
10 changes: 5 additions & 5 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from pprint import pprint


# Shotgrid Api connect
SERVER_PATH = "https://molo.shotgrid.autodesk.com"
SCRIPT_NAME = 'script_dj'
SCRIPT_KEY = 'i*teicH1pmxjklgqmydqwmyyl'
# Shotgrid API connect
SERVER_PATH = "shotgrid_url"
SCRIPT_NAME = 'script_name'
SCRIPT_KEY = 'script_key'
sg = Shotgun(SERVER_PATH, SCRIPT_NAME, SCRIPT_KEY)


Expand Down Expand Up @@ -42,7 +42,7 @@ def upload_assets(self, project_name, asset_dir_path, asset_type):

result = sg.create('Asset', data)

pprint(result)
print(result)


def main():
Expand Down

0 comments on commit f848885

Please sign in to comment.